Work apps · 5 min read · Updated November 30, 2026
How to audit Salesforce connected apps and Agentforce agents
The short answer
Salesforce shows every connected app with active OAuth tokens in Setup under Connected Apps OAuth Usage, with how many people use each. Review each app, block the ones you don’t recognize, and set the ones you keep to admin-approved users only.
Why connected apps matter
Each connected app a person authorizes gets an OAuth token with their access to your customer data. AI note-takers, sales assistants and data tools commonly hold these tokens, and the tokens keep working until someone revokes them.
How to list them by hand
- In Setup, search for Connected Apps OAuth Usage. It lists every app with active tokens and its user count.
- Select an app to see the people who authorized it, and revoke tokens you don’t need.
- For one person, open their user record and check OAuth Connected Apps.
- To list agents, open Agentforce Agents in Setup.
With the API, querying the OauthToken object returns every token, its app, user and last use, if you have the Customize Application permission.
What to fix first
- Apps unused for 90 days or more that still hold tokens
- Tokens held by people who are no longer active
- AI tools with API access to customer records that nobody reviewed
How to control new apps
For apps you keep, set Permitted Users to Admin approved users are pre-authorized and assign access through profiles or permission sets. Block apps you don’t want from the OAuth usage page.
Doing it automatically
Phantm reads tokens and agent definitions read-only, groups tokens by app, and flags stale apps and leavers. See the Salesforce integration.
Questions
Does revoking a token break the app for everyone?
Revoking a token affects only that person. Blocking the app stops it for everyone.
Keep reading
See every AI agent with access, in minutes.
Connect one tool for free. Read-only, no agents to install, and nothing to change in your environment.