SysAddGroupMember
Add a user as a member to the group, bypassing ownership/ACL checks. Optional parameters: role OR attributes.
Service | Operation |
---|---|
group | SYS_ADD_GROUP_MEMBER |
Method Parameters
Parameter | Description |
---|---|
groupId | The id of the group. |
profileId | The profile id of the member being added. |
role | Role of the user being added as a member. |
attributes | Attributes of the member being added. |
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 profileId = "the-profile-id";
var role = "MEMBER";
var attributes = {};
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysAddGroupMember(groupId, profileId, role, attributes);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_ADD_GROUP_MEMBER",
"data":
{
"groupId": "a-group-id",
"profileId": "the-profile-id",
"role": "MEMBER",
"attributes": {}
}
}
JSON Response
{
"status" : 200,
"data" : null
}