Learn R Programming

paws.security.identity (version 0.1.7)

cognitoidentityprovider_admin_set_user_password: Sets the specified user's password in a user pool as an administrator

Description

Sets the specified user\'s password in a user pool as an administrator. Works on any user.

Usage

cognitoidentityprovider_admin_set_user_password(UserPoolId, Username,
  Password, Permanent)

Arguments

UserPoolId

[required] The user pool ID for the user pool where you want to set the user\'s password.

Username

[required] The user name of the user whose password you wish to set.

Password

[required] The password for the user.

Permanent

True if the password is permanent, False if it is temporary.

Request syntax

svc$admin_set_user_password(
  UserPoolId = "string",
  Username = "string",
  Password = "string",
  Permanent = TRUE|FALSE
)

Details

The password can be temporary or permanent. If it is temporary, the user status will be placed into the FORCE_CHANGE_PASSWORD state. When the user next tries to sign in, the InitiateAuth/AdminInitiateAuth response will contain the NEW_PASSWORD_REQUIRED challenge. If the user does not sign in before it expires, the user will not be able to sign in and their password will need to be reset by an administrator.

Once the user has set a new password, or the password is permanent, the user status will be set to Confirmed.