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 registration/login function response.
groupId : GroupId of the group.
groupMember : Member to be added in the group.
#include "BayunCore.h"
Bayun::GroupMember groupMember("<companyEmployeeId>", "<companyName>");
Bayun::ShAddGroupMemberResponse response = bayunCore->addGroupMember("<sessionId>", groupId, groupMember);
Last updated
Was this helpful?