SysReadGroupMembers
Read all members in the group, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_READ_GROUP_MEMBERS |
Method Parameters
Parameter | Description |
---|---|
groupId | ID of the group |
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 groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysReadGroupMembers(groupId);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_READ_GROUP_MEMBERS",
"data": {
"groupId": "a-group-id"
}
}
JSON Response
{
"status": 200,
"data": {
"ee8cad26-16f2-4ef8-9045-3aab84ce6362": {
"role": "OWNER",
"attributes": {},
"playerName": "Peter",
"emailAddress": "klug@bitheads.com",
"pic": "https://some.domain.com/mypicture.jpg",
"summaryFriendData": {
"xp": 12,
"attributeName": "value"
}
},
"295c510f-507f-4bcf-80e1-ebc73708ec3c": {
"role": "MEMBER",
"attributes": {},
"playerName": "Billy",
"emailAddress": "billy@bitheads.com",
"pic": null
}
}
}