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?

rclone.conf:

[qs-service-account]
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": "rclone@qs-forum-discourse.iam.gserviceaccount.com", "client_id": "REDACTED", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/rclone%40qs-forum-discourse.iam.gserviceaccount.com" }

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 = me@example.com 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.