Step 5: Update Password (Self)
PUT {{apiPath}}/environments/{{envID}}/users/{{userID}}/password
Use the PUT /environments/{{envID}}/users/{{userID}}/password
endpoint again, but the request body for the self-change operation requires a value for the currentPassword
attribute, while the administrative password set operation does not.
This operation uses application/vnd.pingidentity.password.reset+json
as the content type in the request header.
Important: Users who authenticate with an external identity provider cannot perform any self-service actions on passwords. Their user.identityProvider.id
attribute is not null
and their user.identityProvider.type
attribute is not PING_ONE
.
Property | Type | Required? |
---|---|---|
currentPassword | String | Required |
newPassword | String | Required |
See the User passwords data model for full property descriptions.
Request Body
{"currentPassword"=>"{{currentPassword}}", "newPassword"=>"{{newPassword}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |