Unable to use or Grant acknowledgeAbuse permissions to Oauth role for drive api

Hello,

To start, I know the file is not actually malware or spam. I am trying to export files from a EDU Google Drive account via the Drive API.

As the title says I am unable to use or Grant acknowledgeAbuse permissions to Oauth role for drive api. I am trying to follow the steps here Method: files.get | Google Drive | Google for Developers

You can see here that the flag is getting added to the request

DEBUG : HTTP REQUEST (req 0xc00021bd00)
DEBUG : GET /drive/v3/files/1AoHuJGMYkId54xW9WP6XOrkE2e-ySZbv?alt=media&acknowledgeAbuse=true HTTP/1.1
Host: www.googleapis.com

I still get this error though: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile

The application I am using for this is Rclone, and it used to work in the past with these same credentials. It seems something changed in the past 3-4 years that stopped the flag from working.

2 Likes

Hi @Ian-RU ,

Welcome to the Google Cloud Community!

Have you tried adding acknowledgeAbuse=True in your parameter?

acknowledgeAbuse - Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

Additionally, you can view this Stack Overflow thread that has a similar issue with yours.

I hope this helps. Thank you. :smiley:

1 Like

Thank you for the reply and looking into it.
I did, you can see that in my post above:

You can see here that the flag is getting added to the request

DEBUG : HTTP REQUEST (req 0xc00021bd00)
DEBUG : GET /drive/v3/files/1AoHuJGMYkId54xW9WP6XOrkE2e-ySZbv?alt=media&acknowledgeAbuse=true HTTP/1.1
Host: www.googleapis.com

I also tried with the v2 api and still got the issue. Was there a permissions change with the way google handles drive api’s? Specifically is this a permission that was removed from the owner permission and put into another permission? This worked for me up until at least 2019/2020

1 Like