Browse SDKs · Flutter
Platform
SDKsFlutter

Get group members info

Batch query group member profiles for specified users using the OpenIM Flutter SDK.

Copy

Batch query member profiles for specified users within a target group:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
userIDListList<String>YesList of user IDs to query within the group.

Code example

final members = await OpenIM.iMManager.groupManager.getGroupMembersInfo(
  groupID: groupID,
  userIDList: userIDList,
);

Return value

A successful Future returns a list of matching group member profile records (List<GroupMembersInfo>).

If certain user IDs are absent from the returned list, it indicates they are not currently active members of this group, not that their accounts do not exist.

This query returns an immediate data snapshot and does not emit event notifications. Manage local caches and merge incremental events using the composite key groupID:userID. See Retrieving group members overview for details.