- URL:
- https://<root>/security/roles/addUsersToRole
- Methods:
- POST
- Required Capability:
- Access allowed with either the "Update", "Delete", "Security and Infrastructure", or "Servers" privileges
- Version Introduced:
- 10.1
Description
The add operation assigns a single user, or multiple users, to a role in the role store.
Request parameters
| Parameter | Details | 
|---|---|
| 
 | The name of the user. Example  | 
| 
 | A comma-separated list of usernames. Each username must already exist in the user store. Example  | 
| 
 | The response format. The default response format is  Values:  | 
Example usage
The following is a sample POST request for the add operation:
POST /<context>/admin/security/roles/addUsersToRole HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
rolename=editors&users=njones,aturing&f=pjsonJSON Response example
{"status": "success"}