Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change phone_number format upon creation of a AWS Cognito User Pool?

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 ?

like image 865
blackjack Avatar asked Feb 15 '17 03:02

blackjack


People also ask

How do I change the attributes of an Amazon Cognito user pool after creation?

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.

How do I change my phone number on Cognito?

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.

How do I change user attributes in Cognito?

To update a cognito user's attributes use the admin-update-user-attributes command, specifying the user-pool-id , username and user-attributes parameters.

How do I change my confirmation status in Cognito?

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!


1 Answers

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.

like image 72
Ionut Trestian Avatar answered Sep 21 '22 11:09

Ionut Trestian