Documentation

sonet_group.user.get

Returns array of social network group participants by calling CSocNetUserToGroup::GetList(), in this case the group access permissions of the current user are verified.

Each participant is represented by an array with the following fields:

  • USER_ID - User ID
  • ROLE - User role in the group:
    • SONET_ROLES_OWNER (A) - Owner,
    • SONET_ROLES_MODERATOR (E) - Moderator,
    • SONET_ROLES_USER (K) - User

Function parameters

Parameter Description
ID Group ID of the group whose participants are needed.

Example

// Get a list participants of the social network group ID=15

BX24.callMethod('sonet_group.user.get', {
 'ID': 15
});

Request:

https://mydomain.bitrix24.com/rest/sonet_group.user.get.json?auth=67df5afc8ce59732e4a21ed3e336979f&ID=15

Response:

{"result":[{"USER_ID":"1","ROLE":"A"}]}


© «Bitrix Inc.», 2001-2018, «Bitrix Inc.», 2018