Rake tasks are scripts that allow you to retrieve, delete or update information on your Faspex server using the command line. This article describes a custom rake task available to add users to a specific workgroup/dropbox.
You can list all external users that are inactive, meaning that at the moment which the task is executed there are executed, there no packages downloadable by the external users, dropbox memberships active and invitation not expired.
The syntax is as following:
asctl faspex:rake custom:inactive_external_users -- [options]
|short form||long form||description|
|-ffile||--file=file||Save in CVS format the list of the users|
|--delete||Automatically delete the users. The deletion is permanent|
|-h||--help||print out help information for this rake task|
Note that you must include at least one of the options specifying which users to list in the command. Submit Only Access applies to Dropbox only, it will be ignored if applied to Workgroup.
To all users from file /tmp/faspex_users to workgroup Distribution you would use the following command:
asctl faspex:rake custom::inactive_external_users -- --file=/tmp/faspex_external_users.csv
User (firstname.lastname@example.org - 7) has all packages expired? true
User (email@example.com) has all dropbox membership expired? true
User (firstname.lastname@example.org) has all invitation membership expired? true
User email@example.com can be removed
User (firstname.lastname@example.org - 8) has all packages expired? true
User (email@example.com) has all dropbox membership expired? false
User (firstname.lastname@example.org) has all invitation membership expired? true
User email@example.com should be NOT removed