The user-manage user command creates a user and displays the local user view.
The undo user-manage user command deletes a user.
user-manage user user-name [ domain domain-name ]
undo user-manage user user-name [ domain domain-name ]
| Parameter | Description | Value |
|---|---|---|
user user-name |
Specifies the login name of a user. |
The value is a case-insensitive string. It supports spaces, but does not support any slashes (/), commas (,), quotation marks ("), question marks (?), or at signs (@). If the login name does not contain any space, its length ranges from 1 to 63. If the login name contains spaces, its length ranges from 3 to 65, and you must enclose the name with double quotation marks ("), for example, "user for test". The name cannot start or end with any spaces. In addition, the name cannot be any. |
domain domain-name |
Specify the authentication domain to which the user belongs. After an authentication domain is specified, users must enter their user names in the "login-name@authentication-domain-name" format for login. For example, user1 in the test authentication domain must enter user1@test for login. If no authentication domain is specified, users belong to the default authentication domain. |
The specified authentication domain must already exist. |
When you run the user-manage user command and the specified user already exists, the user view is displayed.
When a user is created but no parent group is specified, the user belongs to the root group of the authentication domain by default.
One user name can be used in different authentication domains.
Before you delete a user, cancel the reference relationship between this user and policies (such as security policies or PBR policies), because a referenced user cannot be deleted.
When a user is deleted, the online user of this user object is also deleted.