Privilege
The Privilege API allows you to retrieve a list of permissions and actions available to the current user.
Action |
Method |
API |
Description |
GET |
api/privileges/user |
Returns a list of privileges available to the user specified by the session ID. |
Retrieve Privileges
This endpoint returns a list of privileges available to the user based on the provided session ID.
Request Information
URL
api/privileges/user
Method
GET
Description
The request consists of the API endpoint and an active session ID in the request header.
Header Parameters
Parameter |
Description |
Type |
sessionid |
The encrypted session ID. |
string |
Body Parameters
Field |
Description |
Type |
Example |
ML | Whether LumaML is enabled. | Boolean |
false |
userData |
|
||
userID | The unique ID of the logged in user. | Integer |
89 |
EndUser | Whether the user is an end user. | Boolean |
false |
Sample Request
URL: https://application-server/cgrestapi/api/privileges/user
Header: sessionid: EhbNKWgPZNJnHRPWJ3PfvLrtavbL591sfEVzR3Hn/Fs7RCBceNxpWIuhw0iIn8YM
Response Information
ChangeGear returns a list of privileges available to the logged in user.
Sample Response Snippet
{
"Workspace": {...},
"Incident": {...},
"ServiceCatalog": {...},
"Teams": {...},
...
"ML": true,
"userData": "",
"userId": 89,
"EndUser": false
}