AWS User Pool, how to edit user attributes?

*爱你&永不变心* 提交于 2019-12-04 15:51:48

问题


I'm using the AWS Cognito User Pool and created there some users and now I like to change the attributes (e.g. name, address, ...) for a specific user. How it is possible to do this manually on the AWS Website?


回答1:


The console does not have that capability but it can be done in the AWS Command Line Interface.

aws cognito-idp admin-update-user-attributes \
    --user-pool-id xxx \
    --username yyy \
    --user-attributes Name=xxx,Value=yyy Name=ttt,Value=sss ...

Custom attributes use the following syntax:

--user-attributes Name="custom:attributeName",Value="value with space"

You need to set up your credentials with cli first (only the first time), via the command:

aws configure

but after that it is straightforward. For more:

aws cognito-idp admin-update-user-attributes help


来源:https://stackoverflow.com/questions/40845937/aws-user-pool-how-to-edit-user-attributes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!