SysIsGroupMember
Verifies if user is a group member and returns information about group member, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_IS_GROUP_MEMBER |
Method Parameters
Parameter | Description |
---|---|
groupId | The id of the group. |
profileId | The profile id of the user to be checked. |
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 groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysIsGroupMember(groupId, profileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_IS_GROUP_MEMBER",
"data": {
"groupId": "a-group-id",
"profileId": "the-profile-id"
}
}
JSON Response
{
"data": {
"isGroupMember": true,
"role": "MEMBER",
"attributes": {}
},
"status": 200
}