< Home

parent-security-group (local user view)

Function

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

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

Format

parent-security-group parent-security-group-name

undo parent-security-group { all | parent-security-group-name }

Parameters

Parameter Description Value
parent-security-group-name Specifies the name of the parent security group to which the user is added. The value must be the name of an existing static security group. When a security group in a non-default authentication domain is specified, the group name must carry @authentication-domain-name. For example, secgroup1@test indicates secgroup1 in the test authentication domain.
all Removes the user from all parent security groups. -

Views

Local user view

Default Level

2: Configuration level

Usage Guidelines

A user can belong to no parent security group or belong to a maximum of 40 parent security groups.

Users can belong to the security group in any authentication domain.

Example

# Add user test to group1.

<sysname> system-view
[sysname] user-manage user test
[sysname-localuser-test] parent-security-group group1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >