Tool · spec · October 2026

Drive audit

Shows who can see what in a whole Google Drive, from file details alone. Google stops it from opening a single document, and every report prints that refusal.

At a glance

What it isA program that maps a Google Drive and writes a report.
What it readsNames, folders, owners, sharing, dates and sizes. Never what's inside a file.
Where it runsOn your machine, a Mac or a Linux computer. The report is written there.
Get itgithub.com/pie-dot-zero/drive-audit. One file of Python, no packages to install, with the setup guide and the security notes beside it.
How it signs inThrough an app you create in your own Google Workspace, with one permission: file details. Nobody outside your organisation holds access to your Drive.
How fastA Drive of about 30,000 files finished in under three minutes.
Works withGoogle Drive. Not Microsoft 365 yet.
StatusA working tool. On this site since September 21, 2026. Code public since October 24, 2026.

What the report answers

  1. Who can see what. Files open to anyone with the link, shared outside your organisation, or with another organisation. For each, the folder or file setting it inherits from. The report leads with those settings, because that's where the work is.
  2. What has gone stale. Every file by when it last changed, the ones untouched for years, and the ones you own but have never opened.
  3. Who your files depend on. Owners and last editors, by organisation. A folder owned by someone who has left is a problem you find out about the day you need it.
  4. Where the duplication and sprawl are. Exact duplicates among uploaded files, the same document in six versions, empty folders, and the trash still counting against your quota.

How it proves it can't read your files

  1. It asks Google what its permission allows. Google answers, not the audit's own code.
  2. It tries to open one of your documents. Google refuses.
  3. The refusal, with Google's reason, is the first thing in the report. You don't have to take my word for it; you can read it.
  4. If Google ever allowed it, the audit stops before scanning and writes nothing.

Ground rules

Runs today, and not yet

Runs today, on Google Drive:

Not yet, planned and not built:

How it got this way

Sep 21
Published here as a service page: run it on your Drive, then decide.
Oct 2026
Rewritten as this spec. On the wall it's now a tool, drawn with the three ideas that lead into it.
Oct 24
The code went public on GitHub, so anyone can run it without me. A tool on this wall has to be something you can run yourself.

What it cannot tell you

It reads metadata, so it can tell you a file exists, who can reach it and when it last changed, not what it says. Duplicates among native Google Docs can't be proven from metadata, so they show up as version sprawl to look at, not a verdict. Grouping by file name works on document-heavy Drives and poorly on photo-heavy ones. If a claim here outruns what the audit does, that's a bug as serious as a crash.

Run it yourself: github.com/pie-dot-zero/drive-audit has the code, the sign-in setup guide and the security notes. If you get stuck, or want to go through the report together, patrick@pi0.co. You keep the report either way.

Back to Drive audit →