object usergroup.create(object/array userGroups)
This method allows to create new user groups.
(object/array) User groups to create.
Additionally to the standard user group properties, the method accepts the following parameters.
|rights||object/array||Permissions to assign to the group|
|userids||string/array||IDs of users to add to the user group.|
(object) Returns an object containing the IDs of the created user groups under the
usrgrpids property. The order of the returned IDs matches the order of the passed user groups.
Create a user group, which denies access to host group "2", and add a user to it.
CUserGroup::create() in frontends/php/api/classes/CUserGroup.php.