Interested in the topic?

Auto expiration date to share Google Drive files and folders temporarily

As we all know that the files and folders saved on your Google drive can be shared with other people. When you share those files or folders with them, the recipients receive them in their Google Drive to which they have access on a permanent basis unless you change the access permissions manually. Now the problem arises when you feel that these shared items are no longer required in the recipient’s Google Drive or if you don’t want the recipient to see them after a certain period of time. You don’t have the option to set date and time for these files when you share them. This is when you can add the auto Expire feature to your shared files.

Adding Auto Expire feature to the files you share, make them unavailable and inaccessible after a certain period of time which you can specify as per your requirement. It enables you to share the files and folders on a temporary basis. This feature automatically disables the sharing option for the specified file or folder at the specified date and time. All you have to do is set a date, time and include the link to the file you are sharing or have already shared in the Google Script.

How to activate Auto expiration feature?

We have explained below all the steps in detail to help you out with activating Auto expiration.

1. Make a copy of Google Script in your Google Drive by clicking on Google Script.

Google Script Source:Labnol

2. After you have clicked on Google Script, you need to enter the link to your shared folder or the file which you want to be inaccessible to the recipient(s) in line number 3. Enter the date and time you want to set for Auto expiration in line number 7 (Use YYYY-MM-DD format for date and HH:MM format for time).

3. After entering the link and time-date in the script, go to ‘File’ option and choose ‘Project Properties’. Here you have to select your ‘timezone’ from the drop down option. The date and time which you will set for Auto expiration will use this timezone so choose it carefully.

4. Once you are done with entering the link, setting date and time and selecting timezone, you have to go to the ‘Run’ option. Select start and it will ask you for authorization. Click on continue and once the authorization is complete then again go to the ‘Run’ option and select Auto Expire.

Congratulations! You have successfully assigned Auto expiration to your file/folder. You can now close the Google Script window. Now as per the mentioned time, when the time is up, that link will Expire and the recipient will not be able to see the shared file or the folder. Recipient will get the “Access denied” message:

This was a short tutorial on how Auto Expire feature works on Google Drive. How helpful this Auto Expire feature can be for you and others?

EduPristine :Trusted by Fortune 500 Companies and 10,000 Students from 40+ countries across the globe, it is one of the leading International Training providers for Finance Certifications like FRM®, CFA®, PRM®, Business Analytics, HR Analytics, Financial Modeling, and Operational Risk Modeling. EduPristine has conducted more than 500,000 man-hours of quality training in finance.