Get Password Policy
A password policy consists of a list of rules that new passwords must follow to be policy compliant. This end point returns a JSON representation of the list of policy rules.
More information on password policies in Camunda can be found in the password policy user guide and in the security instructions.
Method
GET /identity/password-policy
Result
A JSON object corresponding to the PasswordPolicy
interface in the engine.
Its properties are as follows:
Name | Value | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
rules | Array | A JSON array of password policy rules. Each element of the array is a JSON object representing one rule of the policy.
|
Response Codes
Code | Media Type | Description |
---|---|---|
200 | application/json | Request successful. |
404 | application/json | No password policy was found. |
Example
This example uses the default password policy that enforces a minimum password length and some complexity rules.
Request
GET /identity/password-policy
Response
{
"rules": [
{
"placeholder": "PASSWORD_POLICY_LENGTH",
"parameters": {"minLength": "10"}
},
{
"placeholder": "PASSWORD_POLICY_LOWERCASE",
"parameters": {"minLowerCase": "1"}
},
{
"placeholder": "PASSWORD_POLICY_UPPERCASE",
"parameters": {"minUpperCase": "1"}
},
{
"placeholder": "PASSWORD_POLICY_DIGIT",
"parameters": {"minDigit": "1"}
},
{
"placeholder": "PASSWORD_POLICY_SPECIAL",
"parameters": {"minSpecial": "1"}
}
]
}