so it appears like older access tokens still have access to everything.
Yes, exactly! That was why I could not reproduce it in the past. I have been using the same Refresh Token in my tests for years. After I sent you my previous reply I created a new Access and Refresh Token pair and I could finally reproduce this.
Just to give you some background on this, the only files returned when I tried listing the entire contents of my Drive (including shared files) where the backup files I had shared from a different account. These files were created with Akeeba Backup. Two different backup archives were not shown: one I uploaded manually to my personal drive, and another one I uploaded manually to the other account and then shared it with my personal account. I also could not see any of the files and folders I had created on my account.
When I used the old Refresh token I had been using for years, yup, I could see everything just fine. Therefore, it's not my code or any change in their API (I checked the API docs to be sure), it's a change in how Google Drive manages permissions.
This actually tracks. They did send us an email that we could no longer use the wide /drive permission we were using before, we had to change to the narrower /drive.file permission, see https://www.akeeba.com/news/1766-google-drive-integration-changes.html for the details. We made this change on May 13th.
I also assume – but have not tested – that if you create a custom OAuth2 Helper as described in our documentation you would be able to use existing folders just fine since the custom helper uses the /drive permission, just like how our software used to do before May 13th.
Still, it boggles the mind that the /drive.file permission which they describe as giving access to all folders and files in the drive does not, in fact, do that; it only gives access to folders and files in the Drive created by the application. It is even more bind-boggling that their solution to the problem they caused is to allow API applications to create folders with identical names as other existing folders! If not having access to your drive's content wasn't confusing enough, having two or more folders with the same name is even worse. Wow. What kind of middle management hellscape do they have over there in Mountain View, California?! Because I can't imagine any engineer in their right mind making this decision and thinking it's a good idea. This has to have come from a middle manager buffoon.
Anyway, yeah, the best approach is to not use Google Drive. It's not even cheap. B2 is much cheaper, about $0.60 / month for 100 GiB compared to Google Drive's $2.15 / month for the same storage space. Even the 2TiB option is basically the same price. Why would anyone want to use Google Drive is beyond me. It makes no economic sense and it doesn't even sync as reliably on as many devices as something like, say, Dropbox does.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!