Get list of privileges for the authenticated user

GET {{baseUrl}}/api/sessions/privileges

Get the list of privileges for the authenticated user. The response includes the name, ID, and description of each privilege and specifies which projects the privileges are valid for. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header.

Request Params

KeyDatatypeRequiredDescription
fieldsnullComma-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

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization token

RESPONSES

status: OK

{"privileges":[{"id":"1","name":"Create application objects","description":"This is the privilege required to create an application-level object.","isUserLevelAllowed":true,"projects":[{"id":"B7CA92F04B9FAE8D941C3E9B7E0CD754","isAllowed":true},{"id":"CE52831411E696C8BD2F0080EFD5AF44","isAllowed":true},{"id":"B3FEE61A11E696C8BD0F0080EFC58F44","isAllowed":true},{"id":"4BAE16A340B995CAD24193AA3AC15D29","isAllowed":true},{"id":"4C09350211E69712BAEE0080EFB56D41","isAllowed":true},{"id":"7A2D5F9B9D4484678C984FB74F3860E0","isAllowed":true},{"id":"8C1F88AC91459483A81699AE7C9C2B60","isAllowed":true},{"id":"7186BEA390479AC66A87278F9A0CE6BA","isAllowed":true},{"id":"D2F85B77244CF1C7EFD962A25DA6C484","isAllowed":true},{"id":"D293BC3C214EA68F8E5C4CAB2EE35F50","isAllowed":true},{"id":"BCDEB56A0D48FE5AA1FBD0AF87BE6E1F","isAllowed":true},{"id":"24E74536FC4B70D042FD418933B8A791","isAllowed":true},{"id":"E7D92835ED42C815CB24F5BFB32688D4","isAllowed":true},{"id":"AE7DDEA4184BE8E9C2929DB34590254B","isAllowed":true},{"id":"6704A61FE84C0138642B75BE6FA98859","isAllowed":true},{"id":"ECE018C0DA4FEB9E3A309692B0494438","isAllowed":true},{"id":"C85DD275DC4E65FE476A9AA392FAC893","isAllowed":true},{"id":"C27E27288043EDAC6732179CD9E49F76","isAllowed":true},{"id":"2847BB27B943E4CA4EAE1BBA2A5201F8","isAllowed":true},{"id":"77A5DCDEA341FFD045089982A95839D2","isAllowed":true}]},{"id":"2","name":"Create configuration objects","description":"This is the privilege required to create a configuration-level object.","isUserLevelAllowed":true,"projects":[]}]}