I am using the Google Drive API. I need to copy a file from one Google domain to another, so my approach is as follows:
- authenticate with the source domain service account
- share a file with a user in the target domain
- authenticate with the target domain service account and impersonate the user
- copy the source file from the source domain to the target domain
- remove sharing permission from source file
Everything works as expected, except that I do not want the recipient owner to receive a Google Drive email notifying him of the shared file. When the file is shared via the web interface, you can turn off the email notification, so I assume it is also possible through the API, the question is, how ^^ Any?
PS: I am open to new βless tediousβ methods for creating a copy of a file from one domain to another, if possible.
source
share