- URL:
- https://<root>/security/users/removeRoles
- Methods:
- POST
- Required Capability:
- Access allowed with either the "Update", "Delete", "Security and Infrastructure", or "Servers" privileges
- Version Introduced:
- 10.1
Description
The remove operation removes roles that have been previously assigned to a user account. This operation is supported only when the user and role store supports reads and writes.
Request parameters
| Parameter | Description | 
|---|---|
| 
 | The username of the user from which the roles are being removed. Example  | 
| 
 | A comma-separated list of role names assigned to the user. Example  | 
| 
 | The response format. The default response format is  Values:  | 
Example usage
The following is a sample POST request for the remove operation:
POST /<context>/admin/security/users/removeRoles HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
username=jwhite&roles=editors,planners&f=jsonJSON Response example
{"status": "success"}