Reset a User password (Random Value)

put

/cloudapi/restapi/user/{userId}/auto-reset-pwd

This operation generates a random string and writes it to the password field for the supplied {userId}. The user is notified when the operation completes successfully.

Request

Path Parameters
  • LoginId of the user for whom the password needs to be automatically reset.
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : schema
Type: string

400 Response

Invalid input, Please check.

500 Response

Internal Server Error. Underlying Identity Management System threw an error, Please check the logs.
Back to Top

Examples

Method

PUT

Response Content Type

application/json

Operation

/cloudapi/restapi/user/auto-reset-pwd

cURL Example

REQUEST URL: http://<hostname>:<port>/cloudapi/restapi/user/auto-reset-pwd

curl -X PUT "http://<hostname>:<port>/cloudapi/restapi/user/auto-reset-pwd" -H "accept: application/json" -H "Content-Type: application/json" -d "[ \"JSMITH\",\"DPATEL\"]"

Request Body Example

[

"JSMITH","DPATEL"

]

Response Body Example

{

"JSMITH": "",

"DPATEL": ""

}

Back to Top