SysUpdateGroupEntityAcl
Update the acl settings for a group entity, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_UPDATE_GROUP_ENTITY_ACL |
Method Parameters
Parameter | Description |
---|---|
groupId | The id of the group. |
entityId | The id of the entity to update. |
acl | Access control list for the group entity. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var groupId = "a-group-id";
var entityId = "a-group-entity-id";
var acl = {
"member": 1,
"other": 0
};
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysUpdateGroupEntityAcl(groupId, entityId, acl);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_UPDATE_GROUP_ENTITY_ACL",
"data":
{
"groupId": "a-group-id",
"entityId": "a-group-entity-id",
"acl": {
"member": 1,
"other": 0
}
}
}
JSON Response
{
"data": {
"createdAt": 1666994425075,
"entityType": "myEntityType",
"groupId": "2bf538d1-19ea-4e14-9862-f979215e09b7",
"entityId": "e62dfe16-e6ec-4ebf-b044-2bb3626027e8",
"acl": {
"member": 1,
"other": 0
},
"ownerId": null,
"version": 2,
"updatedAt": 1666994963444
},
"status": 200
}