SysSetGroupOpen
Set whether a group is open (true) or closed (false), bypassing ownership/ACL checks.
| Service | Operation |
|---|---|
| group | SYS_SET_GROUP_OPEN |
Method Parameters
| Parameter | Description |
|---|---|
| groupId | ID of the group |
| isOpenGroup | true if group is open; false if closed |
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 isOpenGroup = false;
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysSetGroupOpen(groupId, isOpenGroup);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_SET_GROUP_OPEN",
"data": {
"groupId": "a-group-id",
"isOpenGroup": true
}
}
JSON Response
{
"status": 200,
"data": null
}