Skip to main content

Retrieve List of Groups

Use GroupsRequestBuilder to configure filters, then call fetchNext() to retrieve groups.

Set Limit

Set the number of groups to fetch per request.

Set Search Keyword

Filter groups by a search string.

Joined Only

Return only groups the logged-in user has joined.

Set Tags

Filter groups by tags. Only groups tagged with the specified tags are returned.

With Tags

Include tag data in the response when set to true.

Fetch Groups

After configuring the builder, call build() then fetchNext() to retrieve groups. Public and password-protected groups are always included. Private groups only appear if the user is a member.

Retrieve Particular Group Details

Use getGroup() to fetch details for a specific group by GUID.
ParameterDescription
GUIDThe GUID of the group for whom the details are to be fetched
On success, the Group object containing the details of the group is returned.

Get Online Group Member Count

Use getOnlineGroupMemberCount() to get the count of online members for specific groups.
This method returns a Hashmap with the GUID of the group as the key and the online member count for that group as the value.

Group Payload Structure

The Group object returned by SDK methods contains the following fields:
ParameterTypeDescription
guidStringUnique identifier of the group
nameStringDisplay name of the group
typeStringGroup type. Values: "public", "private", "password"
passwordStringPassword for protected groups (null for public/private groups)
iconStringURL to group icon image
descriptionStringDescription of the group
ownerStringUID of the group owner
metadataJSONObjectCustom data set by developer. Can contain any key-value pairs
createdAtlongUnix timestamp when group was created
updatedAtlongUnix timestamp of last group update
hasJoinedbooleanWhether the logged-in user has joined this group
joinedAtlongUnix timestamp when logged-in user joined the group
scopeStringLogged-in user’s scope in group. Values: "admin", "moderator", "participant"
membersCountintTotal number of members in the group
tagsArray<String>List of tags for group identification and filtering
isBannedFromGroupbooleanWhether the logged-in user is banned from this group
Sample Group Object:

Next Steps

Create Group

Create new groups for your users

Join Group

Join groups to participate in conversations

Retrieve Members

Fetch list of group members

Additional Filtering

Learn more about advanced filtering options