Does Google api change file ownership?

I use google api to manage multiple files of multiple users. Now I was wondering how I can transfer ownership of some files to another user.

I looked at the api documentation and noticed that I need a "permissionId". I don’t know which one I need. The current user or the user who receives it?)

I don’t know which user should authenticate (using the disk service) that receives the files or the user who gives the files?

+4
source share
1 answer

You will only need to log in as the user who owns this file, and you will give the owner permission to the new owner and provide it by e-mail. Then you can remove the owner’s permission for the authorized user (previous owner). You can remove this using the permission id, which is in the feed for the user.

Remember that ownership can only remain within the domain.

+3
source

Source: https://habr.com/ru/post/1432094/


All Articles