Classic APIs
ClassicGroupsApi
groupMembers

groupMembers

Gets a page of members of a group.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group.
limit?10 | 25 | 50 | 100The number of results to be returned.
sortOrder?SortOrderThe order that the results are sorted in.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: members } = await ClassicGroupsApi.groupMembers({ groupId: 5850082 }); 

Example Data

[
  {
    user: {
      hasVerifiedBadge: false,
      userId: 45348281,
      username: "MightyPart",
      displayName: "MightyPart",
    },
    role: { id: 38353811, name: "NamelessGuy2005 - Scriptor", rank: 255 },
  },
] 

Endpoint

GET /v1/groups/{groupId}/users