< Home

parent-group (user group view)

Function

The parent-group command adds a user group to the specified parent group.

The undo parent-group command removes a user group from the specified parent group.

Format

parent-group parent-group-name

undo parent-group

Parameters

Parameter Description Value
parent-group-name Specifies the name of the parent group to which a user group is added. The value must be the name (with the group path) of an existing user group.

Views

User group view

Default Level

2: Configuration level

Usage Guidelines

Each user group belongs to only one parent group. If you repeat the parent-group command, the latest configuration takes effect. The user group is added to the parent group specified in the latest configuration.

If a user group is removed from the specified parent group, the parent group of the user group is the root group of the authentication domain to which the user belongs. For example, the root group of the default authentication domain is /default.

Example

# Add user group /default/group1 to parent group /default/group2.

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