I'm creating a new Cognito User Pool in AWS. One of user attributes is phone number. User Pool documentation states that phone number format must start with a plus sign (+), something like "+14325551212" for United States. But what about other countries formats. I've tried with Brazilian format and got the following error: "Invalid phone number format". So, do only US numbers allowed ?
Short description. You can't change standard user pool attributes after a user pool is created. Instead, create a new user pool with the attributes that you want to require for user registration. Then, migrate existing users to the new user pool by using an AWS Lambda function as a user migration trigger.
One option is to let user create a new account with the correct email address. Another option is that end user contacts developer, developer can use AdminUpdateUserAttributes to update the user phone number.
To update a cognito user's attributes use the admin-update-user-attributes command, specifying the user-pool-id , username and user-attributes parameters.
In order to change a Cognito user's status from FORCE_CHANGE_PASSWORD to CONFIRMED , we have to change their password. To change a Cognito user's password, use the admin-set-password command, setting the --permanent parameter. Copied!
I am on the Cognito team and we recently deployed a fix that should take care of this issue. So those phone numbers should work now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With