Skip to content

List Members of a Group ​

Group Members

GET
/groups/{groupId}/members

Parameters​

Path Parameters

groupId*
Type
integer
Required

Query Parameters

moderatorId

Acting caller's user id. When it identifies a moderator of the group (validated against the group's permissions, not a presence flag), email/appliedTime are populated; otherwise they are null. memberStatus=requested (applicants) requires it.

Type
integer
memberStatus

Additive (OR) filter: repeat as memberStatus[]=joined&memberStatus[]=groupAdmin to select several. joined is plain members only; groupAdmin is moderators; requested is applicants (moderator-only). No value lists the active members (joined + groupAdmin). An unknown value is a 400.

Type
array
sort
Type
string
Valid values
"roleFirst""mostRecentFirst""oldestFirst""usernameAToZ""usernameZToA"
Default
"roleFirst"
search

Matches username; also matches email only for a moderator caller.

Type
string
page
Type
integer
Default
1
Minimum
1
pageSize

Page size; the spec-standard limit is accepted as an alias (pageSize wins when both are given).

Type
integer
Default
25
Maximum
100
limit

Alias for pageSize (spec-standard). Ignored when pageSize is also present.

Type
integer
Maximum
100

Responses​

Paginated member list

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"id": "string",
  
  
  
"username": "string",
  
  
  
"avatar": "string",
  
  
  
"rank": "string",
  
  
  
"memberStatus": "string",
  
  
  
"appliedTime": "string",
  
  
  
"memberSince": "string",
  
  
  
"email": "string"
  
  
}
  
],
  
"_metadata": {
  
  
"totalCount": 1,
  
  
"page": 1,
  
  
"pageSize": 25,
  
  
"hasMore": false,
  
  
"cursor": {
  
  
  
"next": "string",
  
  
  
"prev": "string"
  
  
}
  
}
}

Samples​

Gainsight CC Developer Portal