Logo
MicroStrategy REST API API Documentation

Get user's privileges

GET {{baseUrl}}/api/users/:id/privileges

Get user's privileges of a project including the source of the privileges

 

Body PARAM

Key Datatype Required Description 
privilege.level
string Project Level Privilege
projectId
string Project ID
fields
null Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization token




RESPONSES

status OK

{ "privileges": [ { "privilege": { "id": "30", "name": "Use server cache", "description": "This is the privilege required to use server cache", "level": "project" }, "sources": [ { "direct": false, "group": { "name": "Everyone", "id": "C82C6B1011D2894CC0009D9F29718E4F" } } ] }, { "privilege": { "id": "90", "name": "Create new folder", "description": "Allow the user to create new folder.", "level": "project" }, "sources": [ {
Curl
curl -X GET 'baseUrl/api/users/:id/privileges?privilege.level=server&projectId=projectId&fields=' -H 'X-MSTR-AuthToken: authToken'

ENDPOINTS