- URL:https://<users-url>/removeRoles(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.1
Description
This 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 |
---|---|
username | The username of the user from which the roles are being removed. Example
|
roles | A comma-separated list of role names assigned to the user. Example
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample encoded POST request for removeRoles:
POST /webadaptor/admin/security/users/removeRoles HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
username=jwhite&roles=editors,planners&f=json
JSON Response example
{"status": "success"}