How to use a Service Account .json with an encrypted rclone volume

Hi,

Currently using rclone + rclone browser on an encrypted volume and all works fine using the regular rclone.config:

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX

But if I try and auth using the Service Account .json instead of the client_id/client_secret, it never works .... no idea if it's due to an error in the path I'm using to the .json in the rclone config.

This is what I have tried:

[gdrive]
type = drive
scope = drive
token = XXX
service_account_file = "C:/Users/PC/.config/rclone/rclone.json"

What am I doing wrong?

Did you run through the service account steps here?

https://rclone.org/drive/#service-account-support

You might find it easier to stuff the credentials in the config file with drive_service_account_credentials if you are concerned about the path.

Can you do a run with -vv and paste the results of it failing?

drive_service_account_credentials works perfectly!

Thank you

1 Like