GET/users/{userId}/groups
Gets a list of groups the member belongs to.
membershipType=ALL (default): Also includes groups the member belongs to indirectly through an organization or another group. Also includes cases where the member is a group administrator but not a group member.membershipType=DIRECT: Returns only groups the member is directly registered in.OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
directory
directory.read
user
user.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | Member ID required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of items to retrieve default : 100 minimum : 1 maximum : 100 example : 100 format : int32 |
| cursor | string | Cursor value example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== |
| membershipType | string | ALL (default): Also includes groups the member belongs to indirectly through an organization or another group. Also includes cases where the member is a group administrator but not a group member. default : ALL Allowed values : DIRECT, ALL |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| groups | array (UserGroup) | List of group information |
| responseMetaData | object (responseMetaData) | Response metadata |
| Property | Type | Description |
|---|---|---|
| groupId | string | Group ID readOnly : true |
| domainId | integer | Domain ID format : int32 |
| groupName | string | Group name |
| isGroupAdministrator | boolean | Indicates whether the member is an administrator of the group. |
| isGroupMember | boolean | Indicates whether the member is a member of the group. May be false when membershipType=ALL and the member is a group administrator but not a group member. |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | Cursor value for pagination |
example
1{2 "groups": [3 {4 "groupId": "group127-8545-4463-603b-04d550d23bf",5 "domainId": 10000001,6 "groupName": "Group1",7 "isGroupAdministrator": false,8 "isGroupMember": true9 }10 ],11 "responseMetaData": {12 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="13 }14}Forbidden
Not Found