# Here is a curl example
curl \
-X POST "http://localhost:8888/api/UsersAndGroups/EnableDisableUsers" \
-H "Authorization: {token}" \
-H "Content-Type: application/json" \
-d '{
"user_ids": [1,2,3],
"enabled": false,
}'
This method allows you to Enable or Disable users.
To enable/disable users, you need to make a POST call to the following url:
:
http://localhost:8888/api/UsersAndGroups/EnableDisableUsers
Result example :
[
{
"Success": "boolean",
"Message": "string",
"Data": object,
"CustomAction": Dictionary<object, object> ,
"CustomAttributes":Dictionary<object, object>
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| user_ids | body | List<long> | List of users. You can get from another method (http://localhost:8888/api/UsersAndGroups/GetUsersAndGroups). |
| enabled | body | boolean | Enabled |
| Authorization | header | string | Add Authorization header token |