CmdID

CmdID / aws / aws cognito-idp

aws cognito-idp update-user-attributes

Updates the currently signed-in user's attributes. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update user attributes

The following update-user-attributes example updates the user attribute "nickname".

aws cognito-idp update-user-attributes --access-token ACCESS_TOKEN --user-attributes Name="nickname",Value="Dan"Identify
--access-tokenA valid access token that Amazon Cognito issued to the currently signed-in user.
--user-attributesAn array of name-value pairs representing user attributes.
Its output
{
    "CodeDeliveryDetailsList": []
}

For more information, see Working with user attributes in the Amazon Cognito Developer Guide.

Options

3 in the AWS CLI reference
--access-tokenA valid access token that Amazon Cognito issued to the currently signed-in user.
--client-metadataA map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
--user-attributesAn array of name-value pairs representing user attributes.