77

I'm using AWS Cognito User Pool and have created some users. Now I would like to change some of the attributes for a specific user such as name, address, etc...

Is it possible to do this on an AWS Website? If so, how?

3 Answers 3

143

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
Sign up to request clarification or add additional context in comments.

1 Comment

does aws cli clash/conflicts will amplify cli ?
15

The new Cognito console interface is able to edit now.

From console go to Amazon Cognito > User pools > {the user pool you want to select} > {user you want to edit}

Under "User attributes" card, click "Edit" on the right enter image description here

3 Comments

I don't have this "User attributes" card, do you have any idea why please?
@Wenneguen did you try to click into the respective user pool? Also did you opt in for the new UI (usually some toggle button at one of the top corners) by any chance?
It's in the new UI of aws
2

The OP asked how to change user attributes in Cognito. While the primary User Attributes and the custom attributes, can he viewed in the console, they cannot be changed there.
Here is a link to the Python API to access User properties: link. The update_user_attributes() method may be what you are looking for.

A broader set of APIs for cognito can be found here.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.