Browse SDKs · Flutter
Platform
SDKsFlutter

Set group member profile access

Control whether group members can view profiles of other members using the OpenIM Flutter SDK.

Copy

Configure whether regular group members are permitted to view the personal profile cards and details of fellow group members:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
lookMemberInfointYesWhether viewing group member profile details is permitted.

Code example

await OpenIM.iMManager.groupManager.setGroupInfo(
  GroupInfo(
    groupID: groupID,
    lookMemberInfo: AllowType.notAllow,
  ),
);

AllowType enum options:

Enum OptionValueBehavior
AllowType.allow0Members may view the profiles of other group members.
AllowType.notAllow1Members are restricted from viewing other members' profiles.

This setting operates independently from Set group member friend permission.

Return value

A successful Future indicates that the profile access policy has been updated on the server.

State changes after the call

The server broadcasts group profile update notifications. The client updates lookMemberInfo on the local group record using groupID as the key. For complete listener integration, see Groups overview. To recalibrate group state, call Get specified groups info.