< Home

add sub-group

Function

The add sub-group command adds a sub-group to a user group.

The undo add sub-group command deletes a sub-group.

Format

add sub-group group-name

undo add sub-group { all | group-name }

Parameters

Parameter Description Value
group-name Specifies the name of the sub-group added to a user group. The value must be an existing user group name (with the group path), and cannot be the name of any parent group or ancestor group.
all Deletes all sub-groups from a user group. -

Views

User group view

Default Level

2: Configuration level

Usage Guidelines

A user group can be added to only one parent group.

After you run the undo add sub-group command, the parent group of the sub-group is restored to the root group of the authentication domain to which the user belongs. For example, the root group of the default authentication domain is the /default group.

Example

# Add sub-group /default/test to user group /default/group1.

<sysname> system-view
[sysname] user-manage group /default/group1
[sysname-usergroup-/default/group1] add sub-group /default/test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >