- URL:https://<roles-url>/addUsersToRole(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.1
Description
This is operation assigns a role to multiple users.
Request parameters
Parameter | Details |
---|---|
rolename | The name of the user. Example
|
users | A comma-separated list of user names. Each user name 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 addUsersToRole:
POST /webadaptor/admin/security/roles/addUsersToRole 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"}