Creates a social network group using the API method CSocNetGroup::CreateGroup() and specifying the current user as group owner.

Get all fields in parameters required for the CSocNetGroup::CreateGroup() method to work.

In the event that field SITE_ID is not specified, value corresponding to current website is used.

In the event that field SUBJECT_ID is not specified, value corresponding to workgroups with minimum sorting index for the specified (or current) website is used.

If create group is successful - return its ID, else - an error message.

Note: REST API does not yet provide an option to create extranet groups.


// Create a visible and public social network group named 'Test sonet group' with the permission to invite new group members for all current group members

BX24.callMethod('sonet_group.create', {
 'NAME': 'Test sonet group',
 'VISIBLE': 'Y',
 'OPENED': 'N',




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-2018, «Bitrix Inc.», 2018