Browse SDKs · WASM
SDKsWASM

Set member profile access

Control whether group members can view other members’ profiles through the group.

Copy

lookMemberInfo controls access to member profiles.

import { AllowType } from '@openim/wasm-client-sdk';

await openimsdk.setGroupInfo({
  groupID,
  lookMemberInfo: AllowType.NotAllowed,
});
Enum valueNumeric valueMeaning
AllowType.Allowed0Allow members to view other member profiles.
AllowType.NotAllowed1Prevent members from viewing other member profiles.

Do not interpret these values as the common Boolean convention of 0 = false and 1 = true.

This setting is independent of whether members may add friends through the group. After the Promise succeeds, update the matching group profile when OnGroupInfoChanged arrives. See Group overview for the complete listener.