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
Parameter | Description |
---|---|
GROUP_ID | Group ID. |
USER_ID | User ID (or ID array) with changed role. |
ROLE | code 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