I am using Google Drive Java API. I need to copy a file from one Google domain to another, so my approach is the following:
- authenticate with source domain service account
- share file with user in destination domain
- authenticate with destination domain service account and impersonate the user
- copy the original file from origin domain to destination domain
- delete the share permission from the original file
Everything works as expected except that I don't want the destination owner to receive the Google Drive email notifying him about the shared file. When the file is shared via the Web GUI one can disable the notification email so I guess this is also possible via the API, the question is how ^^ Anyone?
PS: I am open to new 'less tedious' methods to create a copy of a file from one domain to another if that is possible.