google-drive-recursive-ownership icon indicating copy to clipboard operation
google-drive-recursive-ownership copied to clipboard

Script no longer works?

Open m33ts4k0z opened this issue 1 year ago • 1 comments

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'}]">

m33ts4k0z avatar Jul 13 '23 09:07 m33ts4k0z

See issue #44.

llang629 avatar Sep 07 '23 01:09 llang629