Skip to content

Sample Scripts

Justin Rousseau edited this page Oct 8, 2018 · 9 revisions

Sample Scripts

  • File upload/download

    • Upload Files View / Download - This script uploads all files in a local folder (Documents) to the ShareFile account folder (My Files and Folders).
    • Download Files View / Download - This script downloads all files in your ShareFile home folder to a local folder (Documents).
  • User Provisioning

    • Create Users View / Download - This script takes an exported list of contacts (in CSV format) and loads these contacts into your account as client users as well as the Shared Address Book.
    • Delete Users View / Download - This script will delete users from a .csv file and can be used in conjunction with the Find Disabled Users script.
  • Reporting

    • Storage Report View / Download - This script will output storage details for all items in shared folders and user home folders stored in the account.
    • Find Disabled Users View / Download - This script can be used to find all the disabled users in an account, and then it exports the users to a file. It can be modified to find all users with a specific attribute.
    • Find Users by Company View / Download - This script will return all users matching a passed in company name.
  • Archiving

    • Archive Files View / Download - This script takes a specified parent folder and moves all files in it to a new sub-folder.
  • Storage Zones

    • Installation Script View / Download - This script assists with checking prerequisites and setting up connectors for on-prem environments.

Note: The download links above will link directly to the script, but you may need to right-click and select Save As to save it to your local drive.

Clone this wiki locally