How do I make all the files in a folder own the owner of a folder in Google Drive?

I have several people who upload files to various folders in Google Drive. Each folder is designed for a specific project and has an owner account named according to the name of the project. I want every file (and its descendants) in this parent folder to belong to this project account. For example, the folder is called “Conferences” and belongs to the user “ conference.events@mydomain.com ”. All files uploaded / created at conferences must belong to the "conference.events" account.

What is the easiest way to automate this (I was looking for scripts on the Internet), and can anyone provide a working example? Thank.

+3
source share
1 answer

Short answer

The only way to “force” the files in a folder to be the owner of the owner of the folder is that other users have access only to it.

Explanation

If users can add files to a folder, there is no way to avoid that they add files belonging to another user and then to the folder owner.

Bypass

Instead of allowing users to directly add files to folders, implement another way to add files to this folder. There are several alternatives:

  • Use Google Forms. Google recently added a upload file to Google Forms. It is available only to G Suite users. Link: Change form , article from Google Docs help

  • - Google Apps Script. - .

  • API Google

    • : , G Suite
0

All Articles