Skip to content

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.

GET
/groups

Parameters​

Query Parameters

title

Optional title substring search.

Type
string
visibility
Type
string
Valid values
"public""private""hidden"
userId

Scope the list to this user's view (hidden groups filtered to their memberships).

Type
integer
page
Type
integer
Default
1
Minimum
1
pageSize
Type
integer
Default
25
Maximum
100

Responses​

Paginated group list

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"id": "string",
  
  
  
"name": "string",
  
  
  
"visibility": "string"
  
  
}
  
],
  
"_metadata": {
  
  
"totalCount": 1,
  
  
"page": 1,
  
  
"pageSize": 25,
  
  
"hasMore": false,
  
  
"cursor": {
  
  
  
"next": "string",
  
  
  
"prev": "string"
  
  
}
  
}
}

Samples​

Gainsight CC Developer Portal