How to change User Status FORCE_CHANGE_PASSWORD?

前端 未结 12 1947
我在风中等你
我在风中等你 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:28

    This has finally been added to AWSCLI: https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/admin-set-user-password.html

    You can change a user's password and update status using:

    aws cognito-idp admin-set-user-password --user-pool-id --username user1 --password password --permanent

    Before using this, you may need to update your AWS CLI using:

    pip3 install awscli --upgrade

提交回复
热议问题