2
votes

I have a script which transfers the ownership of a file to another user, this works when the user who runs the scripts is the owner of the file that is going to be transferred.

setOwner(emailAddress)

Would it be possible to accomplish this without having to login as the owner of the file to run the script? I have the email and the password of the owner.

1

1 Answers

0
votes

Not as straightforward, you'll have to get access with oauth2 and use the Drive API to update the permissions.

Never worked with oauth2/Drive API so can't give you any examples.