Browse SDKs · WASM
SDKsWASM

Get joined groups

Get all groups joined by the current user.

Copy

When the user belongs to only a small number of groups, call the parameterless getJoinedGroupList():

const { data: groups } = await openimsdk.getJoinedGroupList();

After the Promise succeeds, data contains every GroupItem[] joined by the current user, not a public group directory for the application. See Get joined groups by page for complete fields.

Use the paginated API when the number of groups is large instead of reading the complete list at once.

The query does not trigger events. See Group overview for subsequent joins, leaves, and profile changes.