- URL:https://<roles-url>/removeUsersFromRole
(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Related Resources:Add Users To Role
- Version Introduced:10.1
Description
This operation removes a role assignment from multiple users.
Request parameters
Parameter | Details |
---|---|
rolename | The name of the role to be removed. Example
|
users | A comma-separated list of usernames that have been assigned the designated role. Each username must exist in the user store. Example
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for removeUsersFromRole:
POST /webadaptor/admin/security/roles/removeUsersFromRole HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
rolename=editors&users=njones,aturing&f=json
JSON Response example
{"status": "success"}