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
-
userId: string
LoginId of the user for whom the password needs to be automatically reset.
Response
Supported Media Types
- text/plain
200 Response
successful operation
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.
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": ""
}