-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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:
- Execute script
- Choose "export"
- 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.