Returns the list of requirements for the current password policy. For example, "The password must have at least 10 characters.", "The password must not be similar to the user's name or email address.", etc.
boolean
Returns a JSON array of the user-facing messages.
string
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/password/policy' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
"<string>"
Returns a list of statements explaining why the password policy would disallow a proposed password for a new user. You can use this method to test the password policy validation. This could be done prior to an action where a new user and related password are created, using methods like the ones in UserService. For example, you could use this to validate a password in a create user form in the user interface, as the user enters it. The username and new password must be not empty to perform the validation. Note, this method will help you validate against the policy only. It won't check any other validations that might be performed when creating a new user, e.g. checking whether a user with the same name already exists.
The intended parameters for the user that would be created. The username and new password must be specified. The old password should be specified for updates where the user would be required to enter it and omitted for those like a password reset or forced change by the administrator where the old password would not be known.
string
string
string
string
Returns a JSON array of the user-facing messages.
string
1
2
3
4
5
curl --request POST \
--url 'http://{baseurl}/rest/api/2/password/policy/createUser' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
1
"<string>"
Returns a list of statements explaining why the password policy would disallow a proposed new password for a user with an existing password. You can use this method to test the password policy validation. This could be done prior to an action where the password is actually updated, using methods like ChangePassword or ResetPassword. For example, you could use this to validate a password in a change password form in the user interface, as the user enters it. The user must exist and the username and new password must be not empty, to perform the validation. Note, this method will help you validate against the policy only. It won't check any other validations that might be performed when submitting a password change/reset request, e.g. verifying whether the old password is valid.
The intended parameters for the update that would be performed. The username and new password must be specified. The old password should be specified for updates where the user would be required to enter it and omitted for those like a password reset or forced change by the administrator where the old password would not be known.
string
string
string
Returns a JSON array of the user-facing messages. If no policy is set, then his will be an empty list.
string
1
2
3
4
5
curl --request POST \
--url 'http://{baseurl}/rest/api/2/password/policy/updateUser' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'