How to change User Status FORCE_CHANGE_PASSWORD?

前端 未结 12 1946
我在风中等你
我在风中等你 2020-12-07 08:15

Using AWS Cognito, I want to create dummy users for testing purposes.

I then use the AWS Console to create such user, but the user has its status s

12条回答
  •  悲&欢浪女
    2020-12-07 08:42

    not sure if you are still fighting with this but for creating a bunch of test users only, I used the awscli as such:

    1. Use the sign-up subcommand from cognito-idp to create the user
    aws cognito-idp sign-up \
       --region %aws_project_region% \
       --client-id %aws_user_pools_web_client_id% \
       --username %email_address% \
       --password %password% \
       --user-attributes Name=email,Value=%email_address%
    
    1. Confirm the user using admin-confirm-sign-up
    aws cognito-idp admin-confirm-sign-up \
    --user-pool-id %aws_user_pools_web_client_id% \
    --username %email_address%
    

提交回复
热议问题