Documentation

sonet_group.user.invite

Invite 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.

Example

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

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

Request:

https://mydomain.bitrix24.com/rest/sonet_group.user.invite.json?auth=52423d4a5f19f5f964f9b4e96a925cfa&GROUP_ID=15&USER_ID=3&MESSAGE=Invitation

Response:

{"result":["3"]}


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