Documentation

sonet_group.user.get

Return 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"}]}


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2017, «Bitrix Inc.», 2017