object usergroup.massadd(object parameters)
This method allows to simultaneously add permissions and users to multiple user groups.
This method is deprecated and will be removed in the future. Please use usergroup.update instead.
(object) Parameters containing the IDs of the user groups to update and the permissions and users to add.
The method accepts the following parameters.
|string/array||IDs of user groups to update.|
|rights||object/array||Permissions to assign to the user groups.|
|userids||string/array||IDs of the users to add to the user groups.|
(object) Returns an object containing the IDs of the updated user groups under the
Deny two user groups access to host group "2".
CUserGroup::massAdd() in frontends/php/include/classes/api/services/CUserGroup.php.