Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to transfer ownership #1

Open
magnuswin opened this issue Oct 29, 2020 · 0 comments
Open

[BUG] Unable to transfer ownership #1

magnuswin opened this issue Oct 29, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@magnuswin
Copy link

Hi! If someone is still actively maintaining this I'd like to ask if he pre-requisites in terms of setting up the service account for the project and being able to transfer ownership to an actual user actually are correct.

I have created a service account, and also set up domain wide delegation to be able to impersonate another user, but I just can't get this to work as per description below. Any help / pointers are welcome. Thank you. // Magnus

Describe the bug
When executing the script in "export" mode, every time it attempts to transfer ownership to the supplied email address it fails with the message:

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/drive/v3/files/1D_huoZjhgjhgjhg12YXJ-UO8Q4/permissions?transferOwnership=true&alt=json returned "Bad Request. User message: "Sorry, cannot transfer ownership to [email]. Ownership can only be transferred to another user in the same organization as the current owner."">

To Reproduce
Steps to reproduce the behavior:

  1. Execute script
  2. Choose "export"
  3. Wait for script to create file, and attempt to transfer ownership

Expected behavior
Ownership should be transferred to the user whose email is supplied on command line when running the script.

@magnuswin magnuswin added the bug Something isn't working label Oct 29, 2020
@magnuswin magnuswin changed the title [BUG] Unable to transfer ownershpi [BUG] Unable to transfer ownership Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant