Browse SDKs · React Native
Platform
SDKsReact Native

Set member profile access

Configure whether members can inspect each others profile details inside a group with the OpenIM React Native SDK.

Copy

Control whether regular members have permission to view other members' profile details within the group:

await OpenIMSDK.setGroupInfo({
  groupID,
  lookMemberInfo: AllowType.NotAllowed,
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID to update.
lookMemberInfoAllowTypeYesMember profile access permission setting.

Access options:

Enum valueValueDescription
AllowType.Allowed0Allow members to view other members' profiles.
AllowType.NotAllowed1Disallow regular members from viewing other members' profiles.

This setting controls profile viewing access and operates independently of Set group member friend permission.

Return value

A resolved Promise confirms that the profile visibility setting was updated on the server.

The update triggers the OnGroupInfoChanged event. Use groupID to update the lookMemberInfo property of the group in local state. For full event listeners, see Group overview.