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'
});


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