Get Roles By Privilege

URL:
https://<root>/security/roles/getRolesByPrivilege
Methods:
POST
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.2

Description

The getRolesByPrivilege operation returns the roles associated with a privilege.

Request parameters

ParameterDetails

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

The following is a sample POST request for the getRolesByPrivilege operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
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=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "roles": [
    "editors",
    "quality_analysts"
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.