Bulk Create and Manage Users with Rake Tasks

Rake Commands

To create and manage users in bulk, use the following commands:
asctl faspex:rake users:bulk_create -- -u userfile -p propertyfile
asctl faspex:rake users:bulk_update -- -u userfile -p propertyfile
asctl faspex:rake users:bulk_delete -- -u userfile
Note: The users:bulk_create and users:bulk_update rake tasks do not support setting passwords for users. An admin must manually set the passwords for the created users.

Create and Update Options

Option Description
userfile (required)

Full path to the CSV file specifying attributes to be applied to individual users.

For example:

name,first_name,last_name,email,welcome_email
user1,John,Doe,jdoe@example.com,jdoe@example.com
user2,Susan,Lee,slee@example.com,slee@example.com
user3,Jay,Johnson,jjohnson@example.com

Faspex sends a welcome email to a user if you provide a welcome email in the entry. You can forgo the welcome email by leaving that column blank. In the example above, Faspex sends a welcome email to user1 and user2, but not to user3.

propertiesfile (required)

Full path to the CSV file specifying attributes to be applied to all users. Use this file to determine the type of user.

The properties file for adding local members of a directory service follows this format:

type,authorization_domain_id
DirectoryServiceUser,3

Set the authorization_domain_id to the ID of a configured LDAP. You can obtain the IDby going to Accounts > Diretory Service Groups. selecting the LDAP, and finding the ID in the URL (for example, the 3 in aspera/faspex/admin/authorization_domains/3/edit)

The properties file for adding local users follows this format:

type
LocalUser

Delete Options

Option Description
userfile (required)

Full path to the CSV file specifying attributes to be applied to individual users.

For example:

name
user1
user2
user3