Configures a password policy for CloudSSO users.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:SetPasswordPolicy |
update |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| MinPasswordLength |
integer |
No |
The minimum password length. Valid values: 8 to 32 characters. |
8 |
| MinPasswordDifferentChars |
integer |
No |
The minimum number of unique characters in a password. A value of 0 indicates no limit on unique characters. The maximum value equals the |
8 |
| PasswordNotContainUsername |
boolean |
No |
Whether a password can contain the username. Valid values:
|
true |
| MaxPasswordAge |
integer |
No |
The validity period of a password. Valid values: 1 to 120. Unit: days. |
90 |
| PasswordReusePrevention |
integer |
No |
The password history check policy. The previous N passwords cannot be reused. Valid values of N: 0 to 24. The value 0 specifies that all historical passwords can be reused. Note
Passwords that are generated before January 5, 2024 are not counted as historical passwords. |
1 |
| MaxLoginAttempts |
integer |
No |
The number of password retries. If a wrong password is entered the specified number of consecutive times, the account is locked for 1 hour. Valid values: 0 to 32. The value 0 specifies that the number of password retries is not limited. |
5 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
768F908D-A66A-5A5D-816C-20C93CBBFEE3 |
Examples
Success response
JSON format
{
"RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.