Invites users to the social network group on behalf of the current user, in this case current user group access permissions are verified.

Function parameters

Parameter Description
GROUP_ID ID of the group to which users are invited.
USER_ID ID of the user (or array of user IDs) who is (are) invited to the group.
MESSAGE Invitation text.

Return array of user IDs successfully invited to the group.


// Invite user ID=3 to social network group ID=15

BX24.callMethod('sonet_group.user.invite', {
 'GROUP_ID': 15,
 'USER_ID': 3,
 'MESSAGE': 'Invitation'




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