此方法允许更新现有的用户组。
Description
object usergroup.update(object/array **userGroups**)
This method allows to update existing user groups.
参数
(object/array)
要更新的用户组属性。
除了之外, 该方法接受以下参数。
(object/array)
User group properties to be updated.
The usrgrpid
property must be defined for each user group, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard user group properties, the method accepts the following parameters.
Parameter | Type | Description |
---|---|---|
rights | object/array | Permissions to replace the current permissions assigned to the user group. |
tag_filters | array | Tag based permissions to assign to the group |
userids | string/array | IDs of the users to replace the users in the group. |
返回值
Return values
(object)
Returns an object containing the IDs of the updated user groups under the usrgrpids
property.
禁用用户组
禁用用户组。
Examples
Disabling a user group
Disable a user group.
Request:
{
"usrgrpids": [
"17"
]
},
参考
CUserGroup::update() in frontends/php/include/classes/api/services/CUserGroup.php.