--- url: >- https://developer-portal.gainsight.com/docs/api/operations/groups/listGroups.md --- # List Groups (Discovery) Groups Returns group ids, names and visibility so a caller can find a group's stable id. With no userId it returns all groups (the admin / trusted-integration full view); with a userId, hidden groups are scoped to that user's memberships. ## Endpoint ``` GET https://api2-eu-west-1.insided.com/groups/groups ``` **Required scope:** `read` ### Parameters | Name | In | Type | Required | Description | |------|----|------|----------|-------------| | `title` | query | string | No | Optional title substring search. | | `visibility` | query | string | No | — | | `userId` | query | integer | No | Scope the list to this user's view (hidden groups filtered to their memberships). | | `page` | query | integer | No | — | | `pageSize` | query | integer | No | — | ### Responses | Status | Description | |--------|-------------| | 200 | Paginated group list | | 400 | Invalid visibility or pagination value | | 401 | Unauthorized | | 500 | Server error |