- URL:
- https://<root>/security/users/getPrivilege
- Methods:
- POST
- Required Capability:
- Access allowed with any authorized privilege
- Version Introduced:
- 10.1
Description
The get operation returns the privilege associated with a user. The API tests all the rules to which the user belongs and returns the highest possible privilege.
Request parameters
| Parameter | Details | 
|---|---|
| 
 | The username for the account that needs to have their privileges computed. Example  | 
| 
 | 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/users/getPrivilege HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
username=njones&f=pjsonJSON Response syntax
{
  "privilege": "<ADMINISTER|PUBLISH|ACCESS>"
}JSON Response example
{
  "privilege": "ADMINISTER"
}