Update User Password

put

/iam/governance/selfservice/api/v1/users/{uuid}/password

Updates the password of the user specified by user ID. The password is validated against the applicable password policies before persisting the password. The logged in user's "uuid" is validated. If the "uuid" mentioned in the path parameter is different than that of the logged in user's unique identifier an exception is thrown.

Request

Supported Media Types
Path Parameters
Body ()
In case of the self change password scenario the user needs to provide the old password, new password and confirm password. If the new password and confirm password do not match Oracle Identity Manager thrown an appropriate exception.
Root Schema : UserUpdatePasswordRequest
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : UserPasswordUpdateResponse
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error
Back to Top

Examples

This example demonstrates the ability to update a user???s password. The information shown here is against a pseudo system and serves as a prototype.

cURL Example

curl  -H "Content-Type: application/json"  -H "X-Requested-By: <anyvalue>"  -X PUT  -u username:password  -d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/users/5/password

Example of PUT Request Body

The following example shows the contents of the request body in JSON format.

{
  "oldPassword": "PASSWORD",
  "newPassword": "PASSWORD",
  "confirmPassword": "PASSWORD"
}

Example of PUT Response Body

The following example shows the contents of the response body in JSON format.

{
  "links": [
    {
      "rel": "self",
      "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/5"
    }
  ],
  "id": "5"
}
Back to Top