Google Drive Service Account - where do files end up?

I've created a Google Drive Service Account, and was able to rclone sync a directory of files into it. rclone ls shows the files. However, I don't see any of them in the GDrive web UI. Nor does that UI show that any quota was used by the files (~4.5G).

I've logged out and back in - nothing. (Drive does ~realtime refreshes anyway.)

Searched for a file with a given name - not found.

Where do the files end up?! And how can they be accessed from a UI?


type = drive
scope = drive.file
service_account_credentials = { "type": "service_account", "project_id": "qs-forum-discourse", "private_key_id": "REDACTED", "private_key": "-----BEGIN PRIVATE KEY-----\REDACTED\n-----END PRIVATE KEY-----\n", "client_email": "", "client_id": "REDACTED", "auth_uri": "", "token_uri": "", "auth_provider_x509_cert_url": "", "client_x509_cert_url": "" }

What's the actual command you are using to sync fully?

Service accounts have their own space somehow in a way I don't truly understand. If you want to see it in a users account then you need to use

  --drive-impersonate string     Impersonate this user when using a service account.

I'm not sure!

Make a copy of your remote (called temp (say)) and add an impersonate = email address to the config .

When yourclone lsf temp: you should see files you expect to see.

you should be able to use rclone move qs-service-account: temp:safiles --drive-server-side-across-configs to server side move the files into a user visible account. That may not work due to some permissions thing, but if it does it will move all the files into a visible account.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.