Academy · Non-human identities

OAuth tokens and AI agents. A login ends. A grant does not.

An employee approving an AI tool is not logging it in. They are handing it a credential that keeps working after they close the tab, change their password and leave the company.

Grants, by scope
ai-notetakergmail.readonly, drive · approver leftRevoke
slide-generatordrive.file · 3 usersReview
crm-enricherSalesforce full accessRevoke
meeting-summarizercalendar.readonly · 14 usersKeep
KEY TAKEAWAYS
  • An OAuth grant is standing access, not a session. It works until somebody revokes it.
  • It frequently survives a password change. Revoking the grant is the reliable way to cut access, not resetting the password.
  • The approver is one employee, usually with no review and no expiry, which is why grants outlive the people who made them.
  • A vendor breach reaches your data through the grant. Vercel and Salesloft Drift are both this shape.

Published Last reviewed

WHAT A GRANT IS

Four properties that make a grant different from a login.

None of these is a flaw in OAuth. All four are consequences of delegating access to software rather than authenticating a person.

01
The token is the access, not the login

An access token and a refresh token are issued to the application. From then on the application calls your systems directly, with no user present and no further prompt. Closing the browser changes nothing.

02
Scopes are granted once and rarely narrowed

AI tools ask broadly, because broad scopes make the product work everywhere. Mail, drive and calendar in one consent is normal, and the consent screen is the only point where anybody reads them.

03
A password change often does not revoke it

Many providers keep refresh tokens valid after a password reset, though Google revokes tokens carrying Gmail scopes when the password changes. Treat revocation of the grant as the control and the password as unrelated.

04
Offboarding usually misses it

Disabling an account does not always invalidate grants the account made, and in some providers the application keeps working against data the account could see. The grant outlives the employee.

COMPARISON

Session versus grant.

The last row is the one that has produced real incidents. The fourth is the one that lets them run for months first.

A user sessionAn OAuth grant to an app
Ends whenThe session times out.Somebody revokes it.
Survives a password changeNo.Often yes.
Visible inSign-in logs.Consent and token logs, which nobody reads.
ReviewedIn access reviews.Almost never.
Breaks when the vendor is breachedNot directly.Yes, through the token they hold.
PRACTICE

How to review them. Four steps.

Step two exists because a list of ninety grants never gets reviewed and a list of twelve does.

01Export every grant with its scopes

Google Workspace third-party app access, Microsoft Entra ID enterprise applications. The export includes the approver, which gives you an owner for free.

02Revoke what is unused before reviewing the rest

Grants with no recent activity are the cheapest to remove and the least likely to be missed. Clearing them makes the remaining list short enough to actually review.

03Rank what remains by scope, not by vendor name

A small tool with mail and drive access outranks a large vendor with calendar read. The brand predicts nothing, the scopes predict everything.

04Add grants to offboarding

When somebody leaves, revoke the grants they approved, not only their account. This is the step that is almost always missing.

FAQ

Questions, answered.

Short answers on oauth tokens and ai agents.

Does changing a password revoke an OAuth grant?

Usually not. Many providers keep refresh tokens valid after a password reset, although Google revokes tokens carrying Gmail scopes when the password changes. Revoking the grant itself is the only reliable way to cut the access.

Why are OAuth grants to AI tools a particular risk?

Because they combine broad scopes, individual approval and no review. The tool asks for mail and files because that makes it useful, one employee approves it, and nothing brings it back for a second look. The Vercel and Salesloft Drift breaches both started at a grant of this shape.

Who owns an OAuth grant?

Formally, the employee who approved it, and that is also the practical answer: the consent log records them. Using that name as the owner is the fastest way to give a long list of grants real owners without a separate exercise.

See what your agents can reach. Before someone else does.

Book a demo and we walk through the access paths in an environment like yours.