Update User Status

put

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

Updates the status (lock/unlock/enable/disable) of the user specified by user ID. The logged in user should have the necessary privileges to update a user's status in Oracle Identity Manager.

Request

Supported Media Types
Path Parameters
Body ()
User's status (enable/disable/lock/unlock) to be updated.
Root Schema : PutStatusRequest
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PutStatusResponse
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

cURL Example

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

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/82/status

Example of PUT Request Body

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

{
     	"status": "unlock"
     }

Example of the Response Body

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

{
    "links": [
        {
            "rel": "self",
            "href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/82/status"
        }
    ],
    "status": "SUCCESS"
}
Back to Top