v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14101465558.4 KB

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

The password can be temporary or permanent. If it is temporary, the user status enters 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 doesn't sign in before it expires, the user won't be able to sign in, and an administrator must reset their password.

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

post/#X-Amz-Target=AWSCognitoIdentityProviderService.AdminSetUserPassword

Headers

X-Amz-Target'AWSCognitoIdentityProviderService.AdminSetUserPassword' required

Request body

UserPoolIdstring required

The user pool ID for the user pool where you want to set the user's password.

Usernamestring password required

The user name of the user whose password you want to set.

Passwordstring password required

The password for the user.

Permanentboolean

<code>True</code> if the password is permanent, <code>False</code> if it is temporary.

Response

Success

AdminSetUserPasswordResponse required