# List Compliance Group Assignments

## GET /v2/admin/users/{userId}/usergroupassignments

> List assigments by user

```json
{"openapi":"3.1.1","info":{"title":"Restricted Pod API","version":"20.17.1"},"servers":[{"url":"https://yourpodURL.symphony.com/pod"}],"paths":{"/v2/admin/users/{userId}/usergroupassignments":{"get":{"summary":"List assigments by user","parameters":[{"schema":{"type":"string"},"name":"sessionToken","description":"Session authentication token.","in":"header","required":true},{"schema":{"type":"integer","format":"int64"},"name":"userId","required":true,"in":"path"},{"schema":{"type":"string"},"name":"groupType","required":true,"in":"query"},{"schema":{"type":"string"},"name":"groupId","required":false,"in":"query"},{"schema":{"type":"boolean"},"name":"active","in":"query"},{"schema":{"type":"string"},"name":"expand","in":"query"},{"schema":{"type":"integer"},"name":"limit","in":"query"},{"schema":{"type":"string"},"name":"before","in":"query"},{"schema":{"type":"string"},"name":"after","in":"query"},{"schema":{"type":"string"},"name":"sort","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupAssigneeResponse"}}}},"400":{"description":"Client error, see response body for further details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized: Session tokens invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden: Caller lacks necessary entitlement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, see response body for further details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error, see response body for further details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"UserGroupAssigneeResponse":{"description":"response","type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UserGroupAssignee"}},"pagination":{"type":"object","$ref":"#/components/schemas/Pagination"}}},"UserGroupAssignee":{"description":"User group assignee object","type":"object","properties":{"id":{"description":"Assignee id","type":"string"},"groupId":{"type":"string"},"group":{"description":"Group","type":"object","$ref":"#/components/schemas/GroupRoleScope"},"userId":{"type":"integer","format":"int64"},"user":{"type":"object","$ref":"#/components/schemas/UserCompp"},"userRoles":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"lastAddedDate":{"description":"Last added","type":"integer","format":"int64"},"lastRemovedDate":{"description":"Last removed","type":"integer","format":"int64"}}},"GroupRoleScope":{"description":"User Group info to include in other models","type":"object","properties":{"id":{"type":"string","description":"Group ID"},"name":{"type":"string","description":"Group name"},"area":{"type":"string","description":"An optional string attribute used for categorizing groups"},"type":{"type":"string","description":"Group type"},"active":{"type":"boolean","description":"Group status"}}},"UserCompp":{"description":"Basic user information to include in other models","type":"object","properties":{"id":{"type":"integer","format":"int64","description":"User ID"},"username":{"type":"string","description":"Username"},"firstName":{"type":"string","description":"User first name"},"lastName":{"type":"string","description":"User last name"},"emailAddress":{"type":"string","description":"User email addressIntegrationUserManagerTest"}}},"Pagination":{"type":"object","required":["cursors"],"properties":{"cursors":{"type":"object","required":["before"],"properties":{"before":{"type":"string","description":"This is the opaque url-safe string that points to the start of the page of data\nthat has been returned.\n"},"after":{"type":"string","description":"This is the opaque url-safe string that points to the end of the page of data\nthat has been returned.\n"}}},"previous":{"type":"string","description":"API endpoint that will return the previous page of data. If not included, this is\nthe first page of data.\n"},"next":{"type":"string","description":"API endpoint that will return the next page of data. If not included, this is the\nlast page of data. Due to how pagination works with visibility and privacy, it is\npossible that a page may be empty but contain a 'next' paging link. Stop paging when\nthe 'next' link no longer appears.\n"}}},"Error":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}
```

> #### 🚧 Roles and Privileges
>
> Calling this endpoint requires the **Scope Management** role.\
> See [Bot Permissions](https://docs.developers.symphony.com/building-bots-on-symphony/configuration/bot-permissions) for a list of roles and associated privileges.

> #### 📘 Limit
>
> Query parameter `limit`: A query may return fewer than the value of limit due to filtering or service-side maximums. Do not depend on the number of results being fewer than the limit value to indicate your query reached the end of the list of data, use the absence of next instead.\
> For example, if you set the limit to 10 and only 9 results are returned, there may be more data available, but one item was removed due to privacy filtering. Some maximums for limit may be enforced for performance reasons.
