curl -X POST "<base_url>/usermanagement/v1/users/disable" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd"
}'
{
"header": {
"code": 1,
"message": "Account has been disabled successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"statusUpdated": "Disable"
}
}
User Management
Disable a User
Disables an active user.
POST
/
usermanagement
/
v1
/
users
/
disable
curl -X POST "<base_url>/usermanagement/v1/users/disable" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd"
}'
{
"header": {
"code": 1,
"message": "Account has been disabled successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"statusUpdated": "Disable"
}
}
Send a live request to
POST /usermanagement/v1/users/disable with Try it. See the full reference for the response fields and error codes: Disable a User.
Request Body
string
required
Username generated when the user was created.
string
Optional. When omitted, disables the user and every service the user is subscribed to.
curl -X POST "<base_url>/usermanagement/v1/users/disable" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd"
}'
{
"header": {
"code": 1,
"message": "Account has been disabled successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"statusUpdated": "Disable"
}
}