|Using Rake Tasks for User Management|
asctl faspex:rake users:bulk_command -- -u user_files -p properties_fileThe available commands are:
|Options (Short Form)||Options (Long Form)||Description|
|Path to the CSV file specifying attributes to be applied to individual users
The user file should have a format like the following, with the information of each new user per line:
name,first_name,last_name,email,ad_objectguid username1,firstname,lastname,email,"objectGUID" username2,firstname,lastname,email,"objectGUID" username3,firstname,lastname,email,"objectGUID"The objectGUID is the DS Distinguished Name (DN).
Important: If you are importing from Active Directory, you must find the objectGUID attribute for a user and copy it in hexadecimal format. Edit the user and go to Properties > Attribute Editor > objectGUID. Edit the attribute, select hexadecimal format, and copy the whole string.
This string is different from the string displayed on the main page. Use this string instead of the one on the main page.When entering the string into the CSV file, enter it as one string without spaces. For example, if the string is "E4 3F 8A 9D 32 5E D7 40 B8 DB EF B3 CA 0F 7B B8", enter it as "E43F8A9D325ED740B8DBEFB3CA0F7BB8".
|Path to the CSV file specifying attributes to be applied to all users
The properties file for adding local users to Faspex would look like this:
type,authorization_domain_id DirectoryServiceUser,id_numThe authorization_domain_id can be found by going to Server > Authentication > Directory Services and editing the Directory Service. Look at the URL and find the ID number after "authorization_domains. For example, if the URL is https://198.51.100.24/aspera/faspex/admin/authorization_domains/1/edit, the ID number is "1"
|-h||--help||Print out help information for this rake task.|