Browse SDKs · React Native
Platform
SDKsReact Native

Get specified group member profiles

Query member profiles for specific users within a group using the OpenIM React Native SDK.

Copy

Retrieve member profiles for designated users within a specific group:

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

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID.
userIDListstring[]YesArray of member user IDs to retrieve.

Return value

A resolved Promise returns GroupMemberItem[] matching the requested user IDs. The order of elements in the returned array is not guaranteed to match the input ID sequence; use the composite key groupID:userID to correlate and merge member data into your local state. For field definitions, see Group overview.