Browse SDKs · React Native
Platform
SDKsReact Native

Check users in a group

OpenIM React Native SDK guide for check users in a group.

Copy

Call getUsersInGroup() to retrieve the user IDs from a specified set that have joined a group.

const userIDs = await OpenIMSDK.getUsersInGroup({
  groupID: 'group-001',
  userIDList: ['user-001', 'user-002', 'user-003'],
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesID of the target group.
userIDListstring[]YesUser IDs to check.

Return value

When the call completes, it returns string[] containing the user IDs that have joined the target group.