7.1 Create Group
Using createGroup
method, a new group is created. The group can be either of type PUBLIC
or PRIVATE
. The user creating the group automatically becomes a member of the group, with full authorization for complete group-management functionality for that group. The developer can choose to enforce more fine-grained access controls if desired.
sessionId : Unique SessionId which is received in the login/registration function response.
groupName : Group name(Optional).
groupType : Type of group.
const groupType = BayunCore.GroupType.PUBLIC;
bayunCore.createGroup("<sessionId>", "<groupName>", groupType)
.then(result => {
console.log("Response received for createGroup.");
console.log(result);
})
.catch(error => {
console.log("Error caught");
console.log(error);
});
Last updated
Was this helpful?