Documentation

sonet_group.user.groups

Return array of social network groups of the current user by calling CSocNetUserToGroup::GetList().

Each group is an array with the following fields:

  • GROUP_ID - Social network group ID
  • GROUP_NAME - Social network group name
  • ROLE - User's role in the group:
    • SONET_ROLES_OWNER (A) - Owner,
    • SONET_ROLES_MODERATOR (E) - Moderator,
    • SONET_ROLES_USER (K) - User

Example

// Get list of groups of the current user

BX24.callMethod('sonet_group.user.groups', {});

Request:

https://mydomain.bitrix24.com/rest/sonet_group.user.groups.json?auth=52423d4a5f19f5f964f9b4e96a925cfa

Response:

{"result":[{"GROUP_ID":"9","GROUP_NAME":"Freelance","ROLE":"K"},{"GROUP_ID":"1","GROUP_NAME":"Marketing and advertising","ROLE":"E"},{"GROUP_ID":"16","GROUP_NAME":"Financial planning","ROLE":"A"},{"GROUP_ID":"18","GROUP_NAME":"New product development","ROLE":"A"},{"GROUP_ID":"26","GROUP_NAME":"Expo Booth","ROLE":"E"},{"GROUP_ID":"28","GROUP_NAME":"New company web site development","ROLE":"A"},{"GROUP_ID":"30","GROUP_NAME":"Project workgroup","ROLE":"K"},{"GROUP_ID":"3","GROUP_NAME":"Sales","ROLE":"K"}]}


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