SDKsReact Native
Get specified group member profiles
Query member profiles for specific users within a group using the OpenIM React Native SDK.
Retrieve member profiles for designated users within a specific group:
const members = await OpenIMSDK.getSpecifiedGroupMembersInfo({
groupID: 'group-001',
userIDList: ['user-001', 'user-002'],
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | string | Yes | Target group ID. |
userIDList | string[] | Yes | Array 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.
Was this page helpful?