Browse SDKs · WASM
SDKsWASM

Get joined groups by page

Page through groups joined by the current user.

Copy

Use getJoinedGroupListPage() when the user belongs to many groups.

Parameters

ParameterTypeRequiredDescription
offsetnumberYesStarting offset. Pass 0 for the first page.
countnumberYesNumber of groups to read.
const { data: firstPage } = await openimsdk.getJoinedGroupListPage({
  offset: 0,
  count: 50,
});

Return result

After the Promise succeeds, data contains the current page of GroupItem[]. Increase offset by the number of items requested, not by a list length that may already have changed after group events arrived.

Group profile fields

FieldTypeDescription
groupIDstringGroup ID, used to find the matching group when an event arrives.
groupNamestringGroup name.
faceURLstringGroup avatar URL.
introductionstringGroup introduction.
notificationstringCurrent group announcement.
notificationUserIDstringUser ID that most recently updated the announcement.
notificationUpdateTimenumberTime when the announcement was last updated, as a Unix timestamp in milliseconds.
ownerUserIDstringCurrent group owner's user ID.
creatorUserIDstringUser ID that created the group.
createTimenumberTime when the group was created, as a Unix timestamp in milliseconds.
memberCountnumberGroup member count at query time.
groupTypeGroupTypeGroup type.
statusGroupStatusCurrent group state, such as normal, blocked, dismissed, or group-wide muted.
needVerificationGroupVerificationTypePolicy determining whether joining requires approval.
applyMemberFriendAllowTypeWhether members may send friend applications to one another.
lookMemberInfoAllowTypeWhether ordinary members may view other member profiles.
displayIsRead Enterpriseboolean (optional)Whether the group displays group-message read state. Browser clients cannot change this field through the group profile API.
muteBypassUserIDs Enterprisestring[] (optional)User IDs allowed to send messages while the group is muted.
exstringApplication-defined group extension string.
attachedInfostring (optional)SDK attachment data. Parse it only according to a confirmed application contract.

The group name, avatar, and member count reflect the group profile at query time. While the list is open, use groupID to update the matching group when an event arrives. Do not rely only on stale cached data for permission decisions.

If a group-add or group-delete event arrives during pagination, reset pagination and reload from the first page. See Group overview for complete event handling.