Skip To Content

Get Privilege For Role

Description

Returns the privilege associated with a role.

Request parameters

ParameterDetails
rolename

The name of the role.

Example

rolename=publishers
f

The response format. The default response format is html.

Values: html | json| pjson

Example usage

Below is a sample POST request for getPrivilege:


POST /webadaptor/admin/security/roles/getPrivilege HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

rolename=publishers&f=json

JSON Response syntax


{
  "privilege": "<ADMINISTER|PUBLISH|ACCESS>"
}

JSON Response example


{
  "privilege": "PUBLISH"
}