External Users Inactive

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.

Please note that you must install this rake task as it is not yet included by default on Faspex. For more information on custom rake tasks and how to install them, see this article (Custom rake tasks on Faspex).

Usage

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.

Example

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
 Processing external1@example.com
User (external1@example.com - 7) has all packages expired? true
User (external1@example.com) has all dropbox membership expired? true
User (external1@example.com) has all invitation membership expired? true
User external1@example.com can be removed
Processing external2@example.com
User (external2@example.com - 8) has all packages expired? true
User (external2@example.com) has all dropbox membership expired? false
User (external2@example.com) has all invitation membership expired? true
User external2@example.com should be NOT removed

0 Comments

Article is closed for comments.
Powered by Zendesk