Browse SDKs · React Native
Platform
SDKsReact Native

Set group join verification

Configure verification requirements for group applications and invitations with the OpenIM React Native SDK.

Copy

Configure the verification policy required for incoming join requests and member invitations:

await OpenIMSDK.setGroupInfo({
  groupID,
  needVerification: GroupVerificationType.AllNeed,
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID to update.
needVerificationGroupVerificationTypeYesGroup verification policy enum.

Verification policy options:

Enum valueValueDescription
GroupVerificationType.ApplyNeedInviteNot0Direct applications require approval; member invitations join directly.
GroupVerificationType.AllNeed1Applications and regular member invitations both require approval; owner and admin invites join directly.
GroupVerificationType.AllNot2Open group: applications and invitations join directly without approval.

Return value

A resolved Promise confirms that the join verification policy was updated on the server.

The update triggers the OnGroupInfoChanged event. Use groupID to update the needVerification property of the group in your state store. For event details, see Group overview.