3.7.2. Importing Users
users.csv file. User passwords cannot be copied from Satellite 5 to Satellite 6; instead, the process generates a new random password for each user that it imports. This information is saved in a CSV file, which as the administrator you can parse and send notifications to each user listed with their new password. You can use the hammer import command on the command line or use the hammer interactive shell.
hammer import user command multiple times, using different input files (CSV files). The import command recognizes user IDs it has already imported, and skips them on subsequent processes.
# hammer import user --csv-file /tmp/exports/users.csv \ --new-passwords /path/to/new/user/passwords.csv
Example 3.3. Example of Interactive Import Session
hammer> import user --csv-file /tmp/exports/users.csv --new-passwords /root/new-user-passwords.csv Creating new user: sat5_admin Creating new user: auser1 Creating new user: auser2
# hammer user list ID | LOGIN | NAME | EMAIL 5 | auser1 | A User1 | auser1@example.com 4 | auser2 | A User2 | auser2@example.com 1 | admin | Admin User | root@sat6.example.com # hammer user list --search sat5_admin ID | LOGIN | NAME | EMAIL 3 | sat5_admin | Hat Red | sat5admin@example.com
# head new-user-passwords.csv mail,login,password sat5admin@example.com,sat5_admin,sat5_admin_svenkmxf auser1@example.com,auser1,auser1_pwfnagdk auser2@example.com,auser2,auser2_rsgywazf
Note
admin user as the initial administrator. It is common for Satellite 5 customers to also create a generic administrative user; consequently, if the import process detects a Satellite 5 admin user, it renames that user to sat5_admin.
You can use the --delete option to delete the entities from the Satellite 6 instance based on information in the specified CSV file. The following example demonstrates the use of this option to delete imported users.
Example 3.4. Deleting Imported Users
$ hammer import user --csv-file /tmp/exports/users.csv --delete --verbose Deleting from /tmp/exports/users.csv Deleting imported user [1->5]. Deleting imported user [8->6]. Deleting imported user [9->7].

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.