Documentation

sonet_group.user.add

The method adds users as social network group members (without invitation and confirmation).

For the result to be successful, current user must have the social network admin permissions.

When an extranet user is added, the social network group becomes available in the extranet (if it wasn't previously).

Call parameters

ParameterDescription
GROUP_IDGroup ID.
USER_IDUser ID (or array ID), which is/are added as group members.

Example

// Add users with ID=10 and 21 to the social network group with ID=15

BX24.callMethod('sonet_group.user.add', {
    GROUP_ID: 15,
    USER_ID: [ 10, 21 ]
});


© «Bitrix24», 2001-2024
Up