Vamshi C
Vamshi C

Reputation: 61

How to find the list of files owned by Google service account? (The user's Drive storage quota has been exceeded)

We publish the file daily to a shared folder using the Google service account. Recently, we are receiving an error, googleapiclient.errors.HttpError: https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&alt=json returned "The user's Drive storage quota has been exceeded.">

We cleared the files from the Shared folder. Though the files are disappeared from the shared folder, it Looks like files are still owned by Google service account and Quota is full. I am planning to delete all the files owned by the Google service account. Is there a way, we can find the list of all files owned by the service account?

Upvotes: 4

Views: 2239

Answers (1)

Iamblichus
Iamblichus

Reputation: 19339

A simple Files: list, while authenticated with the Service Account, should list all files in the Service Account Drive, including files that are in Trash.

A Service Account (if it has not been granted domain-wide delegation and it's not impersonating anyone) is just like a regular account, with its own My Drive. The difference is that you cannot access it via Drive UI.

Reference:

Upvotes: 0

Related Questions