How to add users manually in AWS Cognito.

Tsubasa Kondo
Nov 4 · 2 min read

If you create a cognito user from the AWS console, the status will be “FORCE_CHANGE_PASSWORD”. In this state, password cannot be reset. And I don’t know how to change this state.

See email address above image. “@example.com” is not your email address. If you create a user on the command line following, you can create a user other than your email address.

aws cognito-idp sign-up \
--client-id 4jb9613i5v0123456789abcdef \
--username test2@example.com \
--password Passw0rd! \
--user-attributes Name=email,Value=test2@example.com \
--region ap-northeast-1 \
--profile default
aws cognito-idp admin-confirm-sign-up \
--user-pool-id ap-northeast-1_abceEFGHi \
--username test2@example.com \
--region ap-northeast-1 \
--profile default
aws cognito-idp admin-update-user-attributes \
--user-pool-id ap-northeast-1_abceEFGHi \
--username test2@example.com \
--user-attributes Name=email_verified,Value=true \
--region ap-northeast-1 \
--profile default

A user whose State is “CONFIRMED” has been created. If you are the owner of “test2@example.com”, you can change the password yourself.

Reference link :
https://dev.classmethod.jp/cloud/aws/change-cognito-user-force_change_passwore-to-confirmed/

Tsubasa Kondo

Written by

I am a Japanese software developer living in Mandalay (Myanmar).

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade