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

[ERROR] Internal Error / Consent is required to transfer ownership of a file to another user #2

Open
oknchm opened this issue Oct 17, 2023 · 0 comments

Comments

@oknchm
Copy link

oknchm commented Oct 17, 2023

Hello! Is the script still functional? Tried to transfer ownership of a folder, its sub-folders, and files but got multiples of 2 different error messages.

  1. <HttpError 500 when requesting https://www.googleapis.com/drive/v3/files/[FILE_ID]/permissions?transferOwnership=true&alt=json returned "Internal Error". Details: "[{'message': 'Internal Error', 'domain': 'global', 'reason': 'internalError'}]">

  2. <HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/[FILE_ID]/permissions?transferOwnership=true&alt=json returned "Consent is required to transfer ownership of a file to another user.". Details: "[{'message': 'Consent is required to transfer ownership of a file to another user.', 'domain': 'global', 'reason': 'consentRequiredForOwnershipTransfer'}]">

The command used is python transfer.py --owner "new_owner@gmail.com" --folder "[FOLDER_ID]"

Hope you can help me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant