Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I change the value of custom attribute? #52

Open
quy-nh opened this issue Apr 19, 2021 · 1 comment
Open

How can I change the value of custom attribute? #52

quy-nh opened this issue Apr 19, 2021 · 1 comment

Comments

@quy-nh
Copy link

quy-nh commented Apr 19, 2021

No description provided.

@FranzFelberer
Copy link

Dear quy-nh,

I started to use the libraries recently. to update custom attributes you can use:
https://github.com/pvizeli/pycognito#update-profile

Note that custom attributes need to be prefixed by "custom:" e.g. if you want to update the custom attribute country =>
u.update_profile({''custom:countyr':'Austria'},attr_map=dict())

The custom attributes need also to be read/writeable for your app. (https://medium.com/graymatrix/using-custom-attributes-in-amazon-cognito-user-pool-288cd3128bae)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants