UAG - Change Password¶
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Change password state. |
|
|
string |
yes |
Old or new password depending on state or prompt. |
|
string |
ID of the authentication method whose password is changed. See the section Profile Authentication Methods Management. |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean |
Read-only. Whether the password complexity policy is enforced for the user. |
|
|
number |
Read-only. Minimum password length. |
|
|
number |
Read-only. Minimum number of upper case characters. |
|
|
number |
Read-only. Minimum number of lower case characters. |
|
|
number |
Read-only. Minimum number of digits. |
|
|
number |
Read-only. Minimum number of special characters. |
|
|
boolean |
Read-only. Whether the new password must differ from the current one. |
Retrieve Available Attributes of the ChangePasswordModel¶
Request
Method |
|
Path |
|
GET /api/v2/objspec/change_password
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/change_password'
Change Password¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/change-password
Example Request
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.0.0.1/api/v2/change-password \
-d '{"password": "new-password"}'
Response
{
"result": "success"
}
Retrieve Available Attributes of the PasswordPolicyModel 🆕¶
Request
Method |
|
Path |
|
GET /api/v2/objspec/password_policy
Example Request
curl -s -k -X GET \
-H 'Authorization: <token>' \
'https://10.33.4.95/api/v2/objspec/password_policy'
Get Password Policy 🆕¶
This endpoint returns the password complexity requirements that apply to the calling user, so that a
client can check a new password before it sends the password change request. A requirement with the
value 0 is not enforced.
Request
Method |
|
Path |
|
GET /api/v2/profile/password-policy
Example Request
curl -s -k -X GET \
-H 'Authorization: <token>' \
'https://10.33.4.95/api/v2/profile/password-policy'
Response
{
"result": "success",
"password_policy": {
"enabled": true,
"min_length": 12,
"uppercase": 1,
"lowercase": 1,
"digits": 1,
"special": 1,
"different": true
}
}