Skip to main content
Version: 5.7.0

SysCreateGroup

Create a group.

The group ACL contains two elements defining access to the groups data for non-members (other) and members. Access is defined as:

  • None = 0,
  • ReadOnly = 1
  • ReadWrite = 2
ServiceOperation
groupSYS_CREATE_GROUP

Method Parameters

ParameterDescription
nameName of the group
groupTypeName of the type of group
isOpenGrouptrue if group is open; false if closed
aclThe group's access control list. A null ACL implies default
ownerIdProfile ID of user to be owner of group
ownerAttributesAttributes for the group owner (current user)
defaultMemberAttributesDefault attributes for group members
jsonDataCustom application data
summaryDataPublic summary data for the group that is viewable even by non-members. Optional.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"gameId": "23782",
"groupId": "1c532e52-6a6c-4a34-bcad-a133a0448480",
"ownerId": "7f06ee4d-bc40-48ea-aa27-d3b73059491b",
"name": "groupName",
"groupType": "group1",
"createdAt": 1602706932034,
"updatedAt": 1602706932034,
"members": {
"7f06ee4d-bc40-48ea-aa27-d3b73059491b": {
"role": "OWNER",
"attributes": {}
}
},
"pendingMembers": {},
"version": 1,
"summaryData": {},
"isOpenGroup": true,
"defaultMemberAttributes": {},
"memberCount": 1,
"invitedPendingMemberCount": 0,
"requestingPendingMemberCount": 0,
"acl": {
"member": 2,
"other": 0
}
},
"status": 200
}