Documentation

sonet_group.get

Return array of social network groups, each of which contains a field array, callng CSocNetGroup::GetList(), in this case only groups available to user by permissions are returned.

Function parameters

Parameter Description
ORDER Corresponds to the arOrder parameter of the CSocNetGroup::GetList() method.
FILTER Corresponds to the arFilter parameter of the CSocNetGroup::GetList() method.

Return the same fields as CSocNetGroup::GetList(), except INITIATE_PERMS, SPAM_PERMS and IMAGE_ID (return the IMAGE field, with file field of the corresponding IMAGE_ID instead of the latter).

Example

 // Get a list of all available social network groups, whose name begins with a substring "company" sorted alphabetically by name
 
 BX24.callMethod('sonet_group.get', {
 'ORDER': {
 'NAME': 'ASC'
 },
 'FILTER': {
 '%NAME': 'company'
 }
 });

Request:

https://mydomain.bitrix24.com/rest/sonet_group.get.json?auth=78aa4c5a031b77527ce3c6fa69c14f69&&ORDER[NAME]=ASC&FILTER[%25NAME]=company

Response:

{"result":[{"ID":"28","SITE_ID":"s1","NAME":"New company web site development","DESCRIPTION":"Group description","DATE_CREATE":"2013-05-23T15:06:13+04:00","DATE_UPDATE":"2013-05-23T15:06:13+04:00","ACTIVE":"Y","VISIBLE":"Y","OPENED":"N","CLOSED":"N","SUBJECT_ID":"1","OWNER_ID":"2","KEYWORDS":"","NUMBER_OF_MEMBERS":"3","DATE_ACTIVITY":"2013-11-21T15:38:05+04:00","SUBJECT_NAME":"Work groups"}],"total":1}


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