Remove capabilities from a user
Learn how to remove an administrative capability from a specified user
Capabilities
`users=write`
Syntax
DELETE /admin/user?caps&format=json HTTP/1.1
Host FULLY_QUALIFIED_DOMAIN_NAME
Request Parameters
uid
- Description
-
The user ID to remove an administrative capability from.
- Type
-
String
- Example
-
foo_user - Required
-
Yes
user-caps
- Description
-
The administrative capabilities to remove from the user.
- Type
-
String
- Example
-
usage=read, write - Required
-
Yes
Response Entities
user
- Description
-
A container for the user data information.
- Type
-
Container
- Parent
-
N/A
user_id
- Description
-
The user ID.
- Type
-
String
- Parent
-
user
caps
- Description
-
User capabilities.
- Type
-
Container
- Parent
-
user
If successful, the response contains the user’s capabilities.
InvalidCap
- Description
-
Attempt to remove an invalid admin capability.
- Code
-
400 Bad Request
NoSuchCap
- Description
-
User does not possess specified capability.
- Code
-
404 Not Found