Resets the password of a user.
Operation description
If a user forgets the password, the password expires, or the password poses security risks, a CloudSSO administrator can reset the password for the user.
After you enable single sign-on (SSO) logon, the password of a user cannot be reset.
This topic provides an example on how to reset the password of the user u-00q8wbq42wiltcrk****. The new password is automatically generated by the system.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ResetUserPassword |
update |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| UserId |
string |
Yes |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| Password |
string |
No |
The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length. Note
If you set |
uc)XK$?ictf72CKFDy9vtWaFmISl**** |
| GenerateRandomPassword |
boolean |
No |
Specifies whether to enable the system to automatically generate a new password. Valid values:
|
True |
| RequirePasswordResetForNextLogin |
boolean |
No |
Specifies whether password reset is required upon the next logon. Valid values:
|
False |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NewPassword |
string |
The new password. Note
This parameter is returned only when the new password is automatically generated by the system. |
W2koInFIm0Wy2wVZ$oB)MzD$nY!G**** |
| RequestId |
string |
The request ID. |
F44F02EC-70D1-5E51-8E8E-FA9AC4EF952A |
Examples
Success response
JSON format
{
"NewPassword": "W2koInFIm0Wy2wVZ$oB)MzD$nY!G****",
"RequestId": "F44F02EC-70D1-5E51-8E8E-FA9AC4EF952A"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.