Documentation

sonet_group.user.delete

The method allows deleting user/users from a social network group.

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

When the current user role is a group owner, this user cannot be deleted from this group by this method.

Call parameters

ParameterDescription
GROUP_IDGroup ID.
USER_IDUser ID (or ID array) that is/are deleted from a group.

Example

// Delete users with ID=10 and 21 from the social network group with ID=15

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


© «Bitrix24», 2001-2024
Up