< Home

user (audit policy rule view)

Function

The user command configures the user to which an audit policy rule applies

The undo user command deletes the user to which an audit policy rule applies

Format

user { username user-name &<1-6> | user-group user-group-name &<1-6> | security-group security-group-name &<1-6> | any }

undo user { username user-name &<1-6> | user-group user-group-name &<1-6> | security-group security-group-name &<1-6> | all }

Parameters

Parameter Description Value
username user-name &<1-6>

Specifies the name of a user.

The specified user must exist. A maximum of six users can be created or deleted at a time.

When a user in a non-default authentication domain is specified, the user name must carry "@authentication-domain-name." For example, user1@test indicates user1 in the test authentication domain.

user-group user-group-name &<1-6>

Specifies the name of a user group.

The user group must already exist. A maximum of six user groups can be created or deleted at a time.

A user group name must carry the authentication domain name. For example, /default/group1 indicates group1 in the default authentication domain.

security-group security-group-name &<1-6>

Specifies the name of a security group.

The security group must already exist. A maximum of six security groups can be created or deleted at a time.

When a security group in a non-default authentication domain is specified, the security group name must carry "@authentication-domain-name." For example, secgroup@test indicates security group secgroup in the test authentication domain.

any Indicates any user to which an audit policy rule applies. -
all Deletes all users to which an audit policy rule applies. -

Views

Audit policy rule view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Apply audit policy rule policy_audit to user group /default/managers.

<sysname> system-view
[sysname] audit-policy
[sysname-policy-audit] rule name policy_audit
[sysname-policy-audit-rule-policy_audit] user user-group /default/managers
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >