6.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 authenticate 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.

response = bayunCore.addGroupMember("<sessionId>", groupId, companyEmployeeId, companyName)
sessionId = response.sessionId

Last updated