Scanner deep dive
Google Drive (Domain-Wide Delegation)
Scans files and comments across a whole Google Workspace domain by impersonating users with Domain-Wide Delegation.
Use cases and coverage
Scanning use cases
Review files across a departing team’s accounts
Configure domain-wide delegation with your Workspace administrator. Use the user include list to scope the review, then scan files and comments the selected users can access.
Check shared-drive handover materials
Include users who can read the relevant shared drives. Review matches with the file owners and account for skipped empty files and files over 10 MB.
Related incidentAn OAuth grant opened access to more than 100 GSA Google Drives · Access granted
Discovered March 2016 · Access granted
An OAuth grant opened access to more than 100 GSA Google Drives
GSA’s inspector general reported that an OAuth connection for sharing Drive files through Slack granted full access to more than 100 Google Drives. GSA later removed those permissions. The report describes potential exposure of sensitive files.
How this relates to Google Drive (Domain-Wide Delegation)
GSA described a Slack OAuth grant. If a similar review spans several Workspace users, the domain-wide delegation source can scan files and comments on behalf of the users you include. Define that list with your Workspace administrator.
Review Google Drive (Domain-Wide Delegation) scan scopeGSA Office of Inspector General report · Summary and Findings, memorandum pages 1 and 2
Source check
Atlas AI-assisted source check · 2026-11-22. The publisher describes the event or study. The Atlas explains its relevance to this connector. Detection depends on the scan scope and detectors in use.
What it covers
Compare in matrixWhat the docs page’s Capabilities table says, sorted into what the source reaches, how deep it reads and how it runs. Hatched segments and dashes are capabilities the page doesn’t mention. Select ⓘ for what each one means.
- files
- comments
- My Drive
- Shared Drives
What it reaches
6 supported · 2 not documented
- Comments✓
- Org-wide scanning via impersonation✓
- File contents (Docs, Sheets, Slides, Drawings)✓
- Files in My Drive and Shared Drives✓
- Shared file deduplication✓
- Skip suspended and archived users✓
- History–
- Attachments–
How deep it reads
0 supported · 4 not documented
- Archives–
- Binaries–
- Base64–
- Office docs–
How it runs
0 supported · 6 not documented
- Filters–
- Real-time–
- Pre-commit–
- Pre-receive–
- In CI–
- Auto-resume–
Limits
Caveats the docs page states, like size caps or content it skips.
- Files over 10 MB and empty files are skipped.
- Google Groups, service accounts and external users can't be scanned.
What TruffleHog documents
- Integration guide
Domain-wide delegation lets a service account impersonate Workspace users to read files and comments across accounts. Setup requires a Workspace super administrator and access to a Google Cloud project.
Read the Google Drive (Domain-Wide Delegation) integration guide
Sources checked .
Scan setup and permissions
Set it up
Enterprise paths come from Truffle’s public docs.
Local configuration
- 1Agree on domain-wide access with the Workspace administrator. Prepare a Google Cloud service account, enable the required APIs and set up domain-wide delegation.
- 2Have the Workspace super administrator authorize the client ID and documented scopes. Provide the service-account JSON to the scanner through the documented configuration.
Suggested contact (Atlas suggestion) · Google Workspace super administrator and Google Cloud project administrator
Suggested first check (Atlas suggestion) · Check that the service-account client ID and authorized scopes match in both consoles.
Setup reference checked 2026-11-22 · Configuration
Config file options (4)
Options for sources.GoogleDrive in a local YAML config. Required fields come first.
| Field | What it does | Type |
|---|---|---|
dwd.service_account_jsonRequired | Full contents of the service account JSON key. | string |
dwd.admin_emailDepends | Super Admin email used to list domain users; needed without include_users. | string |
dwd.include_users | Explicit user emails to scan. | list |
dwd.exclude_users | User emails to skip when scanning all users. | list |
Access
How the scanner authenticates and what it’s allowed to read. Write access is highlighted.
All read-only, as documented.
Auth methods
- Service account with Domain-Wide Delegation
Permissions
2 permissionsGoogle Drive APIaccess user Drive filesAdmin SDK APIlist domain users (all-users mode)
If Google Drive (Domain-Wide Delegation) keys leak
The credentials you give this connector are secrets too. These detectors find Google Drive (Domain-Wide Delegation) keys anywhere TruffleHog scans, not only inside Google Drive (Domain-Wide Delegation).
Recent changes
From TruffleHog’s release notes, after review. Tags show whether each change is in Enterprise, open source, or both.
2 release-note items mention this connector. The Atlas hasn’t checked them yet, so they aren’t listed here. See all release notes
Sources and related tools
Evidence
Possible issue in Truffle’s docs
- This page exists but isn't listed on the Connect sources index.
Shown here as the docs state it. All docs issues.
Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so. Truffle’s integrations page doesn’t list this connector, so the Atlas picked its category.
- Source docs pageUpdated 21 Oct 2026
Parent connector · Google Drive