- URL:
- https://<root>/security/roles/getRolesByPrivilege
- Methods:
- POST
- Required Capability:
- Access allowed with any authorized privilege
- Version Introduced:
- 10.2
Description
The get operation returns the roles associated with a privilege.
Request parameters
| Parameter | Details | 
|---|---|
| 
 | The name of the privilege. Values:  | 
| 
 | The response format. The default response format is  Values:  | 
Example usage
The following is a sample POST request for the get operation:
POST /<context>/admin/security/roles/getRolesByPrivilege HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
privilege=ADMINISTER&f=pjsonJSON Response example
{
  "roles": [
    "editors",
    "quality_analysts"
  ]
}