- URL:https://<roles-url>/getPrivilege
(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.0
Description
Returns the privilege associated with a role.
Request parameters
Parameter | Details |
---|---|
rolename | The name of the role. Example
|
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"
}