Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is it possible within a Google Drive domain to have a shared folder with read/write permissions but not delete permissions that would copy a file that is "shared" with that folder instead of it being an alias of the owners file?

If not, is there something in the Google Drive API that would allow for a PHP script that would activate once something is "shared" in a "shared folder" that would authenticate as a different user and copy a file from the shared folder to a private folder?

share|improve this question

1 Answer 1

I know that Google Drive has a "Copy to My Drive" option when you right click on a file someone shared with you but I don't think that can be done automatically from within the Drive webapp.

There exists a Drive API however that I think can easily be used in a Google Apps Script. I have no experience with Google Apps Script, but a little googling brought me to this question on StackOverflow.

It appears to be fairly easy to manage Drive files from an App Script. I'm not sure if you can make Google Apps Scripts to do automation (like continuously checking Drive for new files), but I think it should, go and find out for yourself. If it can't do automation, you could launch it every time you discover new files in the shared folder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.