此方法允许更新现有的用户组。

    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.

    ParameterTypeDescription
    rightsobject/arrayPermissions to replace the current permissions assigned to the user group.
    tag_filtersarrayTag based permissions to assign to the group
    useridsstring/arrayIDs 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:

    1. {
    2. "usrgrpids": [
    3. "17"
    4. ]
    5. },

    参考

    CUserGroup::update() in frontends/php/include/classes/api/services/CUserGroup.php.