Join our Newsletter — 33% off our NHI Course
Home› Guides› Salesforce API Access Control: Blocking Unapproved Clients and…
Guide SaaS & OAuth Integrations

Salesforce API Access Control: Blocking Unapproved Clients and Rogue Data Loader Apps

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 13 min read
On this page

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.

LayerWhere it is setWhat it decides
User API permissionAPI Enabled (and for integration users, API Only User) on profiles and permission setsWhether a user may use the REST, SOAP or Bulk APIs at all
Client app allowlistSetup, API Access Control (after Support enablement)Whether the API accepts calls from apps that are not approved
Installed and blocked appsSetup, Connected Apps OAuth UsageWhich apps are installed, in use, unblocked or blocked
Per-app OAuth policiesEach connected app or external client app policyPermitted users, IP relaxation, refresh token lifetime
Bypass permissionsUse Any API Client; Approve Uninstalled Connected AppsWhich users can use apps outside the normal approval model
Data accessObject and field permissions, sharingWhat 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

  1. 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.
  2. 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.
  3. 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.
  4. Request enablement: ask Salesforce Customer Support to enable API Access Control, starting with a full sandbox.
  5. 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.
  6. 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.
  7. 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.
  8. 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.

PolicyOptionsSuggested setting for API clients
Permitted UsersAll users may self-authorize (default); Admin approved users are pre-authorizedAdmin approved users are pre-authorized, with access granted through a dedicated permission set
IP RelaxationEnforce IP restrictions (default); Enforce IP restrictions, but relax for refresh tokens; Relax IP restrictions for activated devices; Relax IP restrictionsEnforce IP restrictions for integrations with fixed egress; IP restrictions apply only where they are set on the user's profile
Refresh Token PolicyRefresh token is valid until revoked (default); Immediately expire refresh token; Expire refresh token if not used for n; Expire refresh token after nExpire 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:

  1. 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.
  2. Copy the consumer key: from External Client App Manager, Settings, OAuth Settings, Consumer Key and Secret.
  3. 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.
  4. Block the default apps: in Connected Apps OAuth Usage, block the Dataloader Partner and Dataloader Bulk connected apps.
  5. 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 typeTypical riskControl
Data Loader on admin workstationsBulk export by a phished or misled user through a default or look-alike appOwn external client app with PKCE, default apps blocked, permission-set access
Third-party integrationsLong-lived refresh tokens held by a supplierAllowlisted app, dedicated integration user, IP restrictions, refresh token expiry
Developer tools and CLIsBroad scopes from personal machinesAllowlist only the tools your developers use, in sandboxes first; limit production access by permission set
Unknown or unregistered clientsData access outside any approvalAPI 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.

SignalSourceWhat to look forATT&CK
New or unexpected app in useConnected Apps OAuth Usage, Setup Audit TrailAn app appearing, being installed or unblocked outside a change windowT1671 Cloud Application Integration
OAuth logins by applicationLogin History, LoginEvent (Event Monitoring)OAuth logins for an application not on the allowlist, or refused logins from blocked appsT1078.004 Cloud Accounts
Token use from new placesLoginEvent, ApiEventAn integration user or app seen from an IP range or client never seen beforeT1550.001 Application Access Token
Bulk reads through an approved appApiEvent, Bulk API events, API Total UsageRow counts or object coverage far above the app's baselineT1213 Data from Information Repositories
Bypass permission changesSetup Audit Trail, permission set assignment eventsUse Any API Client, Approve Uninstalled Connected Apps or API Enabled grantedAccount 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

ControlNIST SP 800-53 Rev 5NIST CSF 2.0
Allowlisted API clients, blocked appsAC-3 Access Enforcement, AC-17 Remote AccessPR.AA-05, PR.IR-01
API Enabled review, bypass permission limitsAC-6 Least PrivilegePR.AA-05
Dedicated integration users, one per integrationAC-2 Account Management, IA-4 Identifier ManagementPR.AA-05
OAuth logins and API usage monitoringSI-4 System MonitoringDE.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

Related NHI Mgmt Group resources: Salesforce Security Guide · Salesforce Event Monitoring Detection Guide · SaaS and OAuth App Governance Guide · Salesforce External Client Apps

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.