Documentation

sonet_group.user.update

The method allows changing user/users role in the social network group.

To complete the operation, current user must have social network access permissions.

When the current user role - is the group owner, it can be changed by this method.

Call parameters

ParameterDescription
GROUP_IDGroup ID.
USER_IDUser ID (or ID array) with changed role.
ROLEcode of the new workgroup member role (available values: E - moderator and K - member).

Example

// Change user roles with ID=10 and 21 in the social network group with ID=15 to moderators

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


© «Bitrix24», 2001-2024