Summary:
List global password complexity settings, and modify global password complexity settings.
URL:
http(s)://{server hostname}/api/settings/globalPasswordComplexitySettings
Methods summary
- GET Method - returns global password complexity settings.
- PUT Method - modifies global password complexity settings.
GET Method detail
Returns details about global password complexity settings.
Response:
Global password complexity settings structure with the following format:
Name | Description |
---|---|
pwdMinLength |
minimum length of password. |
pwdHistoryLimit |
prevent recent previous passwords from being reused (limit 10). |
pwdReqUpperCase |
specifies if password needs uppercase. |
pwdReqLowerCase |
specifies if password needs lowercase. |
pwdReqNumeric |
specifies if password needs numeric characters. |
pwdReqSpecial |
specifies if password needs special characters. |
pwdReqOTP |
when a user is created, the password is automatically expired. |
Example:
INPUT
curl -u admin:admin https://localhost/api/settings/globalPasswordComplexitySettings
OUTPUT
{
"pwdHistoryLimit" : 1,
"pwdMinLength" : 4,
"pwdReqNumeric" : false,
"pwdReqLowerCase" : false,
"pwdReqUpperCase" : false,
"pwdReqSpecial" : false,
"pwdReqOTP" : false
}
PUT Method detail
Modifies global user settings.
Request:
Same as for 'GET Method - Response' above.
Request:
Modified global password complexity settings.
Example:
INPUT
curl -u admin:admin https://localhost/api/settings/globalPasswordComplexitySettings -X PUT -H "content-type :application/json" -d \
'{
"pwdHistoryLimit" : 4,
"pwdMinLength" : 8,
"pwdReqNumeric" : true,
"pwdReqLowerCase" : true,
"pwdReqUpperCase" : true,
"pwdReqSpecial" : true,
"pwdReqOTP" : true }'
OUTPUT
{
"pwdHistoryLimit" : 4,
"pwdMinLength" : 8,
"pwdReqNumeric" : true,
"pwdReqLowerCase" : true,
"pwdReqUpperCase" : true,
"pwdReqSpecial" : true,
"pwdReqOTP" : true
}
Comments
0 comments
Please sign in to leave a comment.