Permissions requests
The following request enables you to display all the permissions of the user you are currently authenticated with. Please note that only the permissions you are granted are returned.
You have the possibility to disable permissions completely from the user interface and API using the Auth.DisabledPermissions parameter in the web.config file.
GET
https://{yourDomain}/odata/Permissions
Request headers
| Key | Value |
|---|---|
| Authorization | Bearer |
Response code
200 OK
Response body
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Permissions",
"@odata.count": 3,
"value": [{
"Name": "Machines",
"IsGranted": true,
"RoleId": 8
},
{
"Name": "License",
"IsGranted": true,
"RoleId": 8
},
{
"Name": "Settings",
"IsGranted": true,
"RoleId": 8
}
]
}