Sunday, March 29, 2015

How to set Auto-expiry on shared folders or files on google drive

How to set Auto-expiry on shared folders or files on google drive 

Google drive provides facility to share files or folders with others, but these shared files are permanently shared until you manually change their permissions.

Now suppose i want to share my folder with someone but for only two hours, and after then it should automatically change the sharing permissions, then ??

Well here is the solution for that..

Its a script, it starts at a particular given time and change all the sharing permissions to private and the sharing link wouldn't work.

How you can use the script :


  1. Firstly, save a copy of this script in your google drive, Click Here
  2. Copy the URL of your shared files or folders into the script Line #4 and set the expiry date with the time in script Line #10
  3. Now open File menu and go to project properties and set your timezone from the menu, the timezone you choose will work with your script.
  4. Final step is go to Run and click on start that will initialize the timer (though you will not see any timer on your screen)
And you're done !!
Now you don't need to worry about taking back the sharing permissions the script will do that, and will change all the sharing permissions to private and the files that you shared will not be shared anymore..

Enjoy !!

No comments:

Post a Comment