Bitrix24 REST API


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


// Get list of groups of the current user

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



{"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

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager