Skip to main content
Fetch the members of a group with filtering by scope and search keyword. Results are returned as GroupMember objects, which extend User with group-specific fields like scope.

Retrieve the List of Group Members

Use GroupMembersRequestBuilder to fetch members of a group. The GUID must be specified in the constructor.

Set Limit

Sets the number of members to fetch per request.

Set Search Keyword

Filters members by a search string.

Set Scopes

Filters members by one or more scopes (.admin, .moderator, .participant).

Fetch Group Members

After configuring the builder, call build() to create the request, then fetchNext() to retrieve members. Call fetchNext() repeatedly on the same instance to paginate.
The fetchNext() method returns an array of GroupMember objects. GroupMember extends User and adds group-specific fields like scope and joinedAt.

Next Steps

Add Members

Add users to a group programmatically

Kick & Ban Members

Remove or ban members from a group