Configures a password policy for CloudSSO users.
Debugging
Authorization information
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. The minimum value is 0, which specifies that the minimum number of unique characters in a password is not limited. The maximum value is the value of the | 8 |
PasswordNotContainUsername | boolean | No | Specifies whether a password can contain the username. Valid value:
| true |
MaxPasswordAge | integer | No | The validity period of a password. Valid values: 1 to 120. Unit: days. | 90 |
PasswordReusePrevention | integer | No | The policy for password history check. 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 you enter wrong passwords for the specified 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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3"
}
Error codes
For a list of error codes, visit the Service error codes.