- URL:https://<roles-url>/getRolesByPrivilege
(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.2
Description
This operation returns the roles associated with a privilege.
Request parameters
Parameter | Details |
---|---|
privilege | The name of the privilege. Values: ADMINISTER | PUBLISH |
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for getRolesByPrivilege:
POST /webadaptor/admin/security/roles/getRolesByPrivilege HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
privilege=ADMINISTER&f=json
JSON Response example
{
"roles": [
"editors",
"quality_analysts"
]
}