FitWhen to use it — and when not
Use it when
- Agents connected to several apps (mail, calendar, drive, CRM, payments)
- Teams where an admin sets limits and members work inside them
- Any agent that can write, send or spend without a human watching
Skip it when
- A chat assistant with no tools — there is nothing to grant
- Single-purpose automations where the one scope is chosen at setup and never changes
AnatomyThe parts of the pattern
- Connection listEvery connected app with the account it uses.
- Scope rowsRead, write and send/spend as separate rows, never one "full access" switch.
- Grant levelAllowed, ask each time, or off, per scope.
- Usage lineWhen the scope was last used and by which run.
- Expiry and revokeTime-limited grants and a revoke that takes effect immediately.
GuidelinesDo & don’t
Do
- Split read from write from send so people can say yes to reading without saying yes to sending.
- Show the last time each scope was used; unused grants are candidates to remove.
- Default new write and send scopes to "ask each time".
Don’t
- Hide permissions in the OAuth screen only — people forget what they accepted.
- Bundle unrelated scopes behind one toggle.
- Let revoke wait for the next sync or the next run to take effect.
In the wildReal-world examples
Claude Code (permission rules)ChatGPT connectorsGitHub App permissionsGoogle Account third-party access
Products named for reference only — no affiliation, and the demo above is an original illustration, not a copy of their UI.
For engineersImplementation notes
- Check grants in the tool layer on every call, not only when the plan is made — a grant can be revoked mid-run.
- Request narrow OAuth scopes and add more incrementally when a task needs them.
- Store each grant with who set it, when and an optional expiry; log denied calls so the UI can explain why a step stopped.