davidstrauss / google-drive-recursive-ownership

Tool to recursively give away file and document ownership to another user.
MIT License
269 stars 68 forks source link

Script no longer works? #47

Open m33ts4k0z opened 1 year ago

m33ts4k0z commented 1 year ago

Hello and thanks for this much needed script. It looks like that you are no longer able to change the ownership using the API as Google needs a consent screen for every file ownership change? This is what I get when I run the script:

File: 20190511_124214.jpg (['Google Foto', '2019', '05'], 1nrhNTdpsx6BDddQjyGx2HrxtaLMqRUu1jw)
Item b'Google Foto\\2019\\05\\20190511_124214.jpg' needs ownership granted.
    Upgrading existing permissions to ownership.
An error occurred updating ownership permissions: <HttpError 403 when requesting https://www.googleapis.com/drive/v2/files/1nrhNTdpsx6BDddQjyGx2HrxtaLMqRUu1jw/permissions/13961269970869633944?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'}]">
llang629 commented 1 year ago

See issue #44.