domainwidedelegation.comStart free

Use cases → Admin and governance

Audit third-party app access with a delegated account

Use a service account to programmatically review which third-party apps have access to Workspace data across tenants.

Who it is forWorkspace admins responsible for application security across multiple domains.
APIsAdmin SDK
Typical scopesadmin.directory.user.security

The problem

Third-party OAuth apps can access sensitive Workspace data, but admins rarely have complete or up-to-date visibility. Manual checks quickly become out of date, and attacks often exploit forgotten grants.

How it works

  1. Delegate a service account with the required security audit scope.
  2. List all users in each tenant with the Admin SDK.
  3. For each user, retrieve their installed OAuth apps and the scopes granted.
  4. Aggregate and export the findings for review and action.

What changes

You get a current inventory of all third-party app access, making it possible to spot risky or unauthorised integrations before they cause harm.

The trap in this one. The Admin SDK’s tokens.list method only returns tokens for users who have previously signed in since the last password change. If a user has never signed in, or their password was recently reset, their app grants are invisible to the API — so a silent gap appears in your review. Cross-check the user list against tokens.list results to identify missing rows.

Questions people ask

How often should this review run?

Monthly is typical, but after any incident or major onboarding is recommended. Automating to a schedule catches drift.

Can this revoke app access automatically?

Yes, but do so carefully. Revoking tokens can break workflows for end users, so always notify and coordinate before bulk removals.

Want this built?

This is a pattern we run in production. We will set up the delegation and build this on top of it — $500 per hour, most of it working the same day.

Talk to us Or read the setup guide

Related use cases

Audit which third-party apps can read your mail

List every OAuth grant across the domain and find the retired tools still holding access.

Automate joiners, movers and leavers

Create accounts, set group membership, provision Drive and hand over mailboxes without a manual checklist.

Continuously verify your delegation still works

A scheduled probe that proves every API still answers under every tenant, before a customer finds out otherwise.