Reputation: 1018
I'm using the google drive api to manage some files of multiple users. Now I was wondering how I could transfer ownership for some Files to another user.
I was looking at the api documentation and noticed I needed a "permissionId". I don't know wich one I need. The current user or the user who gets it?)
I don't know what user has to be authenticated (with the drive service) the user who gets the files or the user who gives the files?
Upvotes: 4
Views: 4696
Reputation: 41667
You will be only need to be authorized in as the user who owns the file, and you will grant the owner permission to the new owner, and grant it by email address. Then you can remove the owner permission for the authorized (previous owner) user. You can remove this using the permission ID, which is in the about feed for the user.
Remember that ownership can only stay within the domain.
Upvotes: 3