问题
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