Browse SDKs · WASM
SDKsWASM

Get group information

Get group profiles in batches by group ID.

Copy

Group queries establish snapshots at call time and do not trigger group events. Public group discovery, cross-application directories, and complex permission filters belong on the application backend. SDK queries are intended for known groups and groups joined by the current account.

getSpecifiedGroupsInfo() accepts an array of group IDs:

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

Pass an array even when reading one group, and check whether groups[0] exists. Groups do not have URL or slug fields, so application routes must resolve to a stable groupID first.

After the Promise succeeds, data contains the matched GroupItem[]. See Get joined groups by page for field descriptions. The response array is not guaranteed to correspond positionally to the input IDs; merge results by groupID.

Merge subsequent changes by groupID; see Group overview for the complete listeners.