Any user who holds the API Enabled permission can, by default, point a client of their choosing at a Salesforce org and read whatever their sharing access allows, so the question of which apps may call the API is a customer-side control worth setting deliberately. Salesforce gives admins several layers to answer it: API Access Control, which limits API access to allowlisted connected apps; connected app OAuth policies; the Connected Apps OAuth Usage page for blocking apps; and the permissions that decide who may use the API at all. This guide explains how those layers fit together, how to set up API Access Control safely, how to run Data Loader through your own external client app, and which signals to monitor. It is written for Salesforce admins and SaaS security teams. Broader org hardening is covered in the Salesforce Security Guide and is not repeated here.
This is an independent guide from NHI Mgmt Group, based on Salesforce's public documentation as of November 2026. It is not sponsored or reviewed by Salesforce. Product features change, so confirm settings against Salesforce's current documentation.
Key takeaways
- API Access Control turns the API into an allowlist. With "For admin-approved users, limit API access to only allowlisted connected apps" selected, users reach Salesforce APIs only through connected apps you have approved and assigned to them by profile or permission set.
- It is enabled through Salesforce Customer Support. Request the feature first, then configure it in Setup; plan the request into your rollout timeline.
- Use Any API Client bypasses the allowlist. Holders of that permission can use any app, so keep it to a very small number of named admins and review it every quarter.
- Run Data Loader through your own app. Salesforce documents an external client app with PKCE and no stored secret for Data Loader 64.0.2 or later, then blocking the Dataloader Partner and Dataloader Bulk connected apps.
- Allowlisting needs monitoring beside it. Connected Apps OAuth Usage, Login History and Event Monitoring show which clients are actually calling the API and whether a blocked or unexpected client is trying.
How API access works in Salesforce
An API call succeeds when three things line up: the user has permission to use the API, the client app is allowed to authenticate that user, and the user's object, field and record access permits the data requested. Each is a separate control.
| Layer | Where it is set | What it decides |
|---|---|---|
| User API permission | API Enabled (and for integration users, API Only User) on profiles and permission sets | Whether a user may use the REST, SOAP or Bulk APIs at all |
| Client app allowlist | Setup, API Access Control (after Support enablement) | Whether the API accepts calls from apps that are not approved |
| Installed and blocked apps | Setup, Connected Apps OAuth Usage | Which apps are installed, in use, unblocked or blocked |
| Per-app OAuth policies | Each connected app or external client app policy | Permitted users, IP relaxation, refresh token lifetime |
| Bypass permissions | Use Any API Client; Approve Uninstalled Connected Apps | Which users can use apps outside the normal approval model |
| Data access | Object and field permissions, sharing | What an allowed user and app can actually read or change |
Since early September 2025, Salesforce blocks uninstalled connected apps for most users, according to a Salesforce Admins post of 25 August 2025. Users who already authorised an app could keep using it, except apps using the OAuth 2.0 device flow. The Approve Uninstalled Connected Apps permission (new in Summer '25) lets trusted users self-authorise uninstalled apps, and Use Any API Client is broader, covering uninstalled and blocked apps. API Access Control goes a step further than the uninstalled-app restriction: it limits API access to apps on your allowlist, not just to installed ones.
API Access Control and approved connected apps
API Access Control works in one of two modes. "All users" restricts every user from the APIs unless they are pre-authorised through an allowlisted connected app. "Customers and partners only" restricts only external users, unless they use a connected app installed in the Experience Cloud site. This guide covers the all-users mode.
Availability: Salesforce lists API Access Control for Professional, Enterprise, Performance, Unlimited and Developer Editions, in Salesforce Classic and Lightning Experience. The feature is requested from Salesforce Customer Support. Managing connected apps needs Customize Application plus either Modify All Data or Manage Connected Apps; updating profiles and permission sets also needs Modify All Data and Manage Profiles and Permission Sets.
Setup steps
- Inventory current API clients: open Setup, Connected Apps OAuth Usage, and list every app in use, its user count and whether it is installed. Add any API Total Usage data you collect to find clients by user. See How to review Salesforce connected apps and integration users.
- Classify and install: sort apps into trusted and untrusted. Install the trusted ones and block the rest from Connected Apps OAuth Usage. Blocking ends active sessions immediately and prevents new connections, so communicate first.
- Prepare access grants: for each trusted app, create or choose a permission set that grants Assigned Connected App access, and assign it to the users and integration users who need it.
- Request enablement: ask Salesforce Customer Support to enable API Access Control, starting with a full sandbox.
- Turn it on: in Setup, enter API Access Control in Quick Find, click Edit and select "For admin-approved users, limit API access to only allowlisted connected apps". Select "Allow Visualforce pages to access APIs" only if Visualforce pages in your org call the API; without it, clients that call getSessionId() are denied.
- Grant and approve: once enabled, all installed connected apps take the "Admin approved users are pre-authorized" policy. Users with an app's profile or permission set are pre-authorised; everyone else is refused. Approve additional apps by installing them and confirming Unblock is available for the app in Connected Apps OAuth Usage.
- Review Salesforce-created apps: Salesforce automatically creates and installs connected apps for common Salesforce apps, and approving them and granting access to users is the admin's responsibility. Decide which ones your users need.
- Test, then promote: test every integration, the mobile and desktop clients your users rely on, and admin tooling in the sandbox before requesting production enablement.
If an allowlisted app does not receive the scopes it expects, Salesforce's documented fix is to click Block and then Unblock for that app in Connected Apps OAuth Usage. For rollback, keep a record of the apps and permission sets in place before enablement; the fastest recovery for a single broken integration is to grant its users the app's permission set rather than to turn the feature off.
Connected app policies and permission sets
Per-app OAuth policies decide who can use an approved app, from where and for how long. The options below are as Salesforce documents them for connected apps.
| Policy | Options | Suggested setting for API clients |
|---|---|---|
| Permitted Users | All users may self-authorize (default); Admin approved users are pre-authorized | Admin approved users are pre-authorized, with access granted through a dedicated permission set |
| IP Relaxation | Enforce IP restrictions (default); Enforce IP restrictions, but relax for refresh tokens; Relax IP restrictions for activated devices; Relax IP restrictions | Enforce IP restrictions for integrations with fixed egress; IP restrictions apply only where they are set on the user's profile |
| Refresh Token Policy | Refresh token is valid until revoked (default); Immediately expire refresh token; Expire refresh token if not used for n; Expire refresh token after n | Expire if not used for a period suited to the integration, so abandoned tokens lapse |
Two details matter. Switching an app from self-authorise to admin approved removes access for anyone not explicitly granted it, so assign permission sets first. And Use Any API Client lets its holders use any connected app even when it is set to admin approved; Salesforce describes using it with extreme caution and limiting it to a small number of admins. New apps are best built as external client apps, which are closed until installed; see Salesforce External Client Apps.
Reviewing API Enabled and integration users
- Find holders: list every profile and permission set that grants API Enabled, and every user who holds it. Most business users who work only in the browser do not need it.
- Dedicated integration users: Salesforce recommends one user per integration with the Salesforce Integration user licence, which provides the Minimum Access - API Only Integrations profile and the Salesforce API Integration permission set licence. API Enabled and API Only are set to true and cannot be edited, so the user cannot sign in through the UI. Enterprise, Unlimited and Performance Edition orgs get five such licences at no extra cost.
- Login IP ranges: restrict integration profiles to the provider's published IP ranges.
- Bypass permissions: list holders of Use Any API Client and Approve Uninstalled Connected Apps, including cloned admin profiles, and remove them from anyone who does not manage connected apps.
Controlling Data Loader and other clients
Data Loader is a legitimate admin tool that moves data in bulk, which is exactly why it should run through an app you control. Salesforce documents the following setup for Data Loader 64.0.2 or later:
- Create an external client app: enable OAuth, set the callback URL to http://localhost:7171/OauthRedirect (or note another port), select "Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows", deselect "Require secret for Web Server Flow", and add the scopes "Manage user data via APIs (api)" and "Perform requests at any time (refresh_token, offline_access)". Data Loader uses the OAuth 2.0 web server flow.
- Copy the consumer key: from External Client App Manager, Settings, OAuth Settings, Consumer Key and Secret.
- Configure Data Loader: in Settings, enter your My Domain URL as the authentication host for production (and sandbox if used), paste the key into External Client App Consumer Key, and leave both consumer secret fields empty, so no secret is stored on the workstation.
- Block the default apps: in Connected Apps OAuth Usage, block the Dataloader Partner and Dataloader Bulk connected apps.
- Restrict who can use it: set the app's policies so only a Data Loader permission set can use it, with a refresh token expiry, and assign that set only to people with a data migration role.
| Client type | Typical risk | Control |
|---|---|---|
| Data Loader on admin workstations | Bulk export by a phished or misled user through a default or look-alike app | Own external client app with PKCE, default apps blocked, permission-set access |
| Third-party integrations | Long-lived refresh tokens held by a supplier | Allowlisted app, dedicated integration user, IP restrictions, refresh token expiry |
| Developer tools and CLIs | Broad scopes from personal machines | Allowlist only the tools your developers use, in sandboxes first; limit production access by permission set |
| Unknown or unregistered clients | Data access outside any approval | API Access Control refuses them; monitor refused attempts |
Monitoring API usage
Allowlisting reduces the paths to data; monitoring confirms it works and spots misuse through approved apps. Detailed field-level detections are in the Salesforce Event Monitoring Detection Guide; the signals specific to client control are below.
| Signal | Source | What to look for | ATT&CK |
|---|---|---|---|
| New or unexpected app in use | Connected Apps OAuth Usage, Setup Audit Trail | An app appearing, being installed or unblocked outside a change window | T1671 Cloud Application Integration |
| OAuth logins by application | Login History, LoginEvent (Event Monitoring) | OAuth logins for an application not on the allowlist, or refused logins from blocked apps | T1078.004 Cloud Accounts |
| Token use from new places | LoginEvent, ApiEvent | An integration user or app seen from an IP range or client never seen before | T1550.001 Application Access Token |
| Bulk reads through an approved app | ApiEvent, Bulk API events, API Total Usage | Row counts or object coverage far above the app's baseline | T1213 Data from Information Repositories |
| Bypass permission changes | Setup Audit Trail, permission set assignment events | Use Any API Client, Approve Uninstalled Connected Apps or API Enabled granted | Account Manipulation (T1098) |
Event Log Files and Real-Time Event Monitoring beyond the free set depend on Salesforce Shield or the Event Monitoring add-on; the event monitoring guide lists what each edition includes.
Metrics
- Allowlist coverage: share of API calls made through allowlisted apps (target: all, once enabled).
- API permission footprint: number of users holding API Enabled, and holders of Use Any API Client.
- Token hygiene: share of approved apps with a refresh token expiry policy.
- Integration isolation: share of integrations running as dedicated integration users with IP restrictions.
- Change response: time from an unapproved app appearing to its block or approval.
Framework mapping
| Control | NIST SP 800-53 Rev 5 | NIST CSF 2.0 |
|---|---|---|
| Allowlisted API clients, blocked apps | AC-3 Access Enforcement, AC-17 Remote Access | PR.AA-05, PR.IR-01 |
| API Enabled review, bypass permission limits | AC-6 Least Privilege | PR.AA-05 |
| Dedicated integration users, one per integration | AC-2 Account Management, IA-4 Identifier Management | PR.AA-05 |
| OAuth logins and API usage monitoring | SI-4 System Monitoring | DE.CM-03 |
Common failure patterns
- Enabling before inventory: turning on API Access Control without assigning app permission sets, which refuses every integration not yet granted.
- Use Any API Client sprawl: granting the bypass to a large admin group or a cloned profile, so the allowlist protects everyone except the most privileged users.
- Leaving default Data Loader apps open: setting up your own external client app but not blocking Dataloader Partner and Dataloader Bulk.
- Refresh tokens valid until revoked: leaving the default on supplier integrations, so tokens outlive the project that needed them. See How to revoke a compromised Salesforce connected app or integration token fast.
- API Enabled for everyone: broad profiles granting the API to browser-only users, which widens the population any approved client can act for.
- Shared integration users: several integrations on one user, so one compromised token reaches all of their data.
Practitioner checklist
- Inventory API clients in Connected Apps OAuth Usage and classify each as trusted or untrusted.
- Install trusted apps, block the rest, and grant each trusted app through a dedicated permission set.
- Request API Access Control from Salesforce Customer Support, enable it in a full sandbox, test, then enable in production.
- Set Permitted Users to admin approved and a refresh token expiry on every approved app.
- Limit Use Any API Client and Approve Uninstalled Connected Apps to a few named admins and review quarterly.
- Remove API Enabled from users who work only in the browser.
- Run each integration as its own integration user with login IP ranges set to the provider's ranges.
- Move Data Loader to your own external client app with PKCE and block Dataloader Partner and Dataloader Bulk.
- Monitor new apps, refused OAuth logins and bulk reads, and forward the logs to your SIEM.
Standards and references
- Salesforce Help: API Access Control
- Salesforce Help: Restrict API access for all users
- Salesforce Help: Manage OAuth access policies for a connected app
- Salesforce Developers: Create a secure connection with an external client app (Data Loader)
- Salesforce Developers: Configure Data Loader
- Salesforce Admins: Get ready for changes to connected app usage restrictions
- Salesforce Admins: Best practices for configuring your integration user
Related NHI Mgmt Group resources: Salesforce Security Guide · Salesforce Event Monitoring Detection Guide · SaaS and OAuth App Governance Guide · Salesforce External Client Apps