How to authorize rclone for Google Drive without disabling Advanced Protection Program?

When configuring Rclone for Google Drive, the OAuth process is blocked (the account is under the Enhanced Protection Program, resulting in a 404 error).

Is there a way to authorize Rclone while keeping the Enhanced Protection Program enabled?

Thank you.

welcome to the forum,

perhaps you can try
To use a Service Account instead of OAuth2 token flow,

Unless the Service Account approach is solving the issue, it seems not possible... check

I asked Google about this but they have not replied yet...

Advanced Protection was the biggest block I had to using rclone, previously on Windows, and currently on Gentoo, for 3 separate personal accounts. Incidentally, at least 2 of those 3 accounts always show as 'workspace' accounts, but in reality, they are not. I have 4 domains utilizing Google Workspace and managing all the domain stuff is vastly different from managing the three personal accounts (as it should be). But, it is what it is, loading those two accounts' gmail page in a browser shows Workspace every time.

To get rclone finally working, I divested my personal accounts of Advanced Protection, as there is no real alternative for using GDrive in Linux to rclone (to my liking and not requiring a subscription / OTP). I'm hoping that Google gets back with you @ncw and there is some sort of resolution for this, as I created all of my accounts with my own client ID when starting this project, but I'd really like to be able to enable AP again. I followed many of the steps that @ptu did in his post, but his testing was more thorugh than mine, yet the result is the same - AP enabled effectively kills any chance of rclone functioning.

Hi soya Liu. I had the same issue. I tried different setup but none worked. What I did at the end was to remove temporarily the enhanced protection program, generate the token for Rclone and re-enable the Google EPP right after. It's been 48 hours and everything still works fine. Would be nice to have a fully working solution from Rclone and Google though. Hope this helps.

Hi,

Two ideas.

Rclone is designed to be able to run on computers without a monitor or browser. You can use a different PC even one at home to authenticate and then bring the configuration file into the office and add the entry into your computer config file and everything should work. During the configuration you just tell it you don't have a browser and you get the token from another computer.

Configure the software remote somewhere else and then bring it on to the computer that has the advanced protection on it.

You just need to bring the config file into the office.