7.6 Add Group Member
The addGroupMember
function is used to add a new member to the Group. The member to be added in the group may belong to a different company, provided that the company and the member must already be registered with Bayun. Any existing member of the group can add a new member. The developer can enforce stricter access-mechanisms on top if desired (e.g. only group-owner or group-admin is allowed to add new members).
The function takes the following parameters :
sessionId : Unique SessionId which is received in the login/registration function response.
groupId : GroupId of the group.
companyEmployeeId : CompanyEmployeeId of the member to be added in the group.
companyName : Name of the company of the member to be added in the group.
bayunCore.addMemberToGroup("<sessionId>", "<groupId>", "<companyEmployeeId>", "<companyName>")
.then(result => {
console.log("Response received for addMemberToGroup.");
console.log(result);
})
.catch(error => {
console.log("Error caught");
console.log(error);
});
Last updated
Was this helpful?