Get info for direct user groups
GET {{baseUrl}}/api/users/:id/memberships
Get information for the direct user groups that a specific user belongs to. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header. You identify the user by specifying the user ID in the path of the request; you obtain the user ID using GET /users.
Body
PARAM
Key | Datatype | Required | Description |
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
[
{
"name": "Everyone",
"id": "C82C6B1011D2894CC0009D9F29718E4F",
"type": 34,
"abbreviation": "Everyone",
"description": "All Users in the system",
"subtype": 8705,
"dateCreated": "2015-06-30T21:54:54.000+0000",
"dateModified": "2021-03-09T15:18:54.000+0000",
"version": "C2CCB67111EB80EA0C390080EF856B1B",
"acg": 255,
"owner": {
"name": "Administrator",
"id": "54F3D26011D2896560009A8E67019608"
},
"acl": [
{
"deny": false,
"type": 1,
"rights": 5,
"trusteeId": "294DEDC011D2F1D56000D98E67019608",
"trusteeName": "Public / Guest",
"trusteeType": 34,
"trusteeSubtype": 8705,
"inheritable": false
},
{
"deny": false,
"type": 1,
"rights": 5,
"trusteeId": "5F3FAFE011D2D8CC6000CC8E67019608",
"trusteeName": "System Monitors",
"trusteeType": 34,
"trusteeSubtype": 8705,
"inheritable": false
},
{
"deny": false,
"type": 1,
"rights": 5,
"trusteeId": "C82C6B1011D2894CC0009D9F29718E4F",
"trusteeName": "Everyone",
"trusteeType": 34,
"trusteeSubtype": 8705,
"inheritable": false
},
{
"deny": false,
"type": 1,
"rights": 13,
"trusteeId": "17CD5CDB43085A8A52533B86A05DCB3A",
"trusteeName": "User Administrators",
"trusteeType": 34,
"trusteeSubtype": 8705,
"inheritable": false
},
{
"deny": false,
"type": 1,
"rights": 255,
"trusteeId": "54F3D26011D289656000 Curl curl -X GET 'baseUrl/api/users/:id/memberships?fields=' -H 'X-MSTR-AuthToken: authToken' ENDPOINTS |