7.9 Remove Group Members

The removeGroupMembers function is used to remove a list of members from the Group. Any existing member of the group can remove other members. The developer can choose to build stricter access-control mechanisms on top of this if desired (e.g. only the group-owner or group-admin is authorized to remove members from the group).

The function takes the following parameters :

  • sessionId : Unique SessionId which is received in the registration/login function response.

  • groupId : GroupId of the group.

  • groupMembers : List of members to be removed from the group.

const groupMembers = [];
groupMembers.push({
    companyName: "<companyName>",
    companyEmployeeId: "<companyEmployeeId>",
});

await bayunCore.removeMembersFromGroup(<sessionId>,<groupId>,groupMembers);

Last updated

Was this helpful?