0
votes

I want a basic script to protect folders in Google Drive folders structure. When the users try to access a folder called "Private", for example, i want shows an alert or prompt to entry a password.

If users known the password, they can access into the folder. But if the password its not okay, they won't access never.

I want to make it with Google Apps Script.

Anybody can help me?

2
Removed the "something like" part as it make the question prone to be closed as asking for external resources which is off-topic on this site. - Rubén

2 Answers

0
votes

Not possible. There is no such trigger or function exists to do something like this.

Why not just share the folder with the selected users and then they will need to log into Google to open it?

0
votes

It's not possible to protect a Google Drive folder with a password. The way to protect them is by using or not using the sharing function.

By the other hand there isn't a simple trigger either an installable trigger for folders events like create, open or close.