I have a master account, lets call it master@domain.com. I do a lot of Drive PHP API processes on this account (not using a service account for this as it's only for this account) like creating dynamic folder structures, creating documents, modifying permissions, etc. The thing is some users in the same domain.com will be uploading files and sharing them to this account, but for security and integrity purposes I need to be the owner of this files. As I can't trust that the employees will always remember to give me manual ownership I need to do this with the API.
How can I achieve this? Do I need to use a service account to impersonate the users so I can do an insertPermission(), or can i do an update permission from the master@domain.com account? Any help is appreciated.
This might help https://github.com/pinoyyid/googleDriveTransferOwnership
It sets up a folder, called say "Project 1". Any files placed in that folder will have their ownership changed to whoever the owner of "Project 1" is.