< Home

user-manage user-export

Function

The user-manage user-export command exports user information into a CSV file in batches.

Format

user-manage user-export { from group { all | group-name } | user user-name } to csv-file

Parameters

Parameter Description Value
from group all Exports information about all users in all the user group and its subgroups. -
from group group-name Exports information about all users in the specified user group and its subgroups. The value must be the name (with the group path) of an existing user group.
user user-name Exports information about users with the specified login name. The user name must be the login name of an existing user.
csv-file Specifies the name of a CSV file. The value is a case-sensitive string of 5 to 31 characters. Spaces are not supported. The file is in the [ file path ] file name.csv format.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the user-manage user-export command to export the information about the specified user or user group to the specified CSV file on a storage device.

  • When the file path on the device is specified in csv-file, the exported CSV file is the file in the specified path.
  • When only the file name is specified in csv-file, the exported CSV file is the file in the default path.
  • When the specified csv-file does not exist, the system automatically creates a CSV file.

When the free space on the storage device is smaller than 4 MB, exporting the CSV file is not allowed.

After user information is exported to a CSV file, the user password is displayed in ciphertext.

If a user group contains no user, this group cannot be exported independently.

Exporting a CSV file is not allowed when another administrator is importing the user and user group information into the CSV file.

Example

# Export the user and user group information from /default/engineer to file abc.csv.

<sysname> system-view
[sysname] user-manage user-export from group /default/engineer to abc.csv
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >