Bitrix24 REST API

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

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