Rake Tasks for User Management

Overview

This section will describe the rake tasks used to accomplish the following:
  • Individually create an user.
  • Bulk create users from a CSV file with the option to set temporary passwords for all users.
  • Update individual user properties.
  • Bulk update user properties.
  • Bulk delete users.

Rake Tasks

The following rake tasks allow you to create, update, and delete users individually or in bulk. To manage individual users, execute the rake commands in the following table:

Command Description
asctl faspex:rake users:create -- -n USERNAME -f FIRSTNAME -l LASTNAME -e EMAIL (-p PASSWORD) [other optional arguments] Create the user with the desired USERNAME and the rest of the relevant fields.
asctl faspex:rake users:update -- -n USERNAME [optional arguments] Update the user with the specified USERNAME
asctl faspex:rake users:delete -- -n USERNAME Delete the user with the specified USERNAME.
Note: The full list of available arguments will be printed if no username is provided, or if -- --help or -- -h is specified.

Bulk Rake Tasks

To manage users in bulk, use the commands in the following table. You must provide the extension in the file name.

Note: The USERFILE and PROPERTYFILE expects a file in CSV, YML, or JSON format. For example:
asctl faspex:rake users:bulk_create -- -u users.csv -p template.csv
asctl faspex:rake users:bulk_update -- -u users.csv -p template.csv
asctl faspex:rake users:bulk_delete -- -u users_to_delete.csv

Aspera currently supports the following commands:

Command Description
asctl faspex:rake users:bulk_create -- -u USERFILE (-p PROPERTYFILE) Create the users with the names specified in the USERFILE.
asctl faspex:rake users:bulk_update -- -u USERFILE (-p PROPERTYFILE) Update the users with the names specified in the USERFILE.
asctl faspex:rake users:bulk_delete -- -u USERFILE Delete the users with the names specified in the USERFILE.