Skip to main content
Security

What is Connected App in Salesforce?

Updated · By the Clientell AI team · How we write

A connected app is a Salesforce setup record that lets an outside application sign in to your org through OAuth or SAML. It stores the app's keys, allowed scopes and access policies. Salesforce is replacing connected apps with External Client Apps, and creating new connected apps is now blocked by default.

Key facts

What it is
A record that lets an external app authenticate to Salesforce and call its APIs
Protocols
OAuth, OpenID Connect and SAML (Security Assertion Markup Language, a single sign-on standard) single sign-on
Key values
Consumer Key (client ID) and Consumer Secret (client secret)
Where to find it
Setup > App Manager lists apps. Setup > Connected Apps OAuth Usage shows who holds tokens.
New connected apps
Creation is disabled by default since Spring '26, and Salesforce Support must enable it (Salesforce Help)
Replacement
External Client Apps, managed in Setup > External Client App Manager (Salesforce Developers Blog)

Clientell AI, the AI Salesforce admin, audits your Connected App setup in a read-only scan, then drafts the fixes. See permission management

Try it in Clientell AI

“Audit my Connected App setup: show where access is too open, list who has more than they need, and draft fixes for me to approve.”

Clientell AI reads your org first. Platform deployments include rollback. How security works.

Start the 14-day free trial, no card

How does a connected app work?

Salesforce needs a trusted identity for every outside tool that reads or writes your data. A data loader, a mobile app, a BI tool and a custom integration all need one. The connected app is that identity.

The app sends users to Salesforce to sign in. Salesforce checks the Consumer Key, the callback URL and the requested scopes. It then returns a token that the app uses for API calls. The user's password never reaches the app, except in the old username-password flow.

OAuth flowUse it forNotes
Authorization code with PKCEWeb, mobile and single-page apps with a userNo secret kept in the browser. The best default.
JWT bearerServer jobs with no user at the screenSigned with a certificate you upload
Client credentialsServer jobs that run as one userThe run-as user is set on the app
Device flowDevices with no browserUser approves on a second screen
Username-passwordOld integrations onlyAvoid. It hands the user's password to the app.

Can you still create a connected app in 2026?

Mostly no. In Spring '26 Salesforce disabled the creation of new connected apps by default, in both the UI and the API. The one exception is a connected app that arrives inside an installed package. Existing connected apps keep working. Salesforce says Support will not be able to switch creation back on in future releases (Salesforce Help).

If you must create one now, ask Salesforce Support to enable it. Then go to Setup > External Client Apps > Settings and turn on Allow creation of connected apps (Salesforce DX Developer Guide). For new work, build an External Client App instead.

Connected app vs External Client App

An External Client App (ECA) does the same OAuth job with safer defaults. A connected app is available to every org by default. An ECA stays local to its org until you package it, and it separates the developer's settings from the admin's policies (Trailhead).

Connected appExternal Client App
StatusLegacy. New creation blocked by default.The path Salesforce recommends for new integrations
Setup pageApp ManagerExternal Client App Manager
Default reachUsable by other orgs without installationClosed until installed in your org
SettingsDeveloper and admin settings mixedDeveloper settings and admin policies kept apart
PackagingFirst-generation styleSecond-generation (2GP) managed packages

How to lock down OAuth policies

Policies decide who may use the app once it exists. Set them before the first user connects. Changing Permitted Users later revokes the existing tokens in both directions, so every user has to sign in again (Salesforce Help).

  • Open Setup > App Manager, find the app, and choose Manage, then Edit Policies. For an ECA, open Setup > External Client App Manager, pick the app and click Edit.
  • Under OAuth Policies, set Permitted Users to Admin approved users are pre-authorized.
  • Add the profiles or permission sets that may use the app. Users outside that list get an error at sign-in.
  • Set IP Relaxation to enforce the org's IP ranges for server integrations that call from a fixed address. Relax IP restrictions only when users sign in from anywhere.
  • Choose a Refresh Token Policy and a session timeout that match the data the app can reach.
  • Save, then open Setup > Connected Apps OAuth Usage to confirm who holds a token. Click Block on any app nobody should use. Blocking ends all current sessions (Salesforce Admin Blog).

Example: find out who holds tokens

The OauthToken object lists the tokens users have granted to apps. Run this in Developer Console or the Salesforce CLI to see the apps with the most use. A stale AppName with an old LastUsedDate is a candidate to block.

SELECT AppName, UserId, UseCount, LastUsedDate
FROM OauthToken
ORDER BY LastUsedDate ASC

Common connected app mistakes

Most connected app incidents come from one loose setting, not from the protocol.

  • Leaving Permitted Users on All users may self-authorize. Any user can then approve the app. Switch to admin-approved and assign permission sets.
  • Granting the Full access scope to a reporting tool. Request only api and refresh_token, or less.
  • Keeping the Consumer Secret in code or a shared doc. Move it to a secrets manager and rotate it if it leaked.
  • Letting users approve uninstalled apps. Since September 2025, users need the Approve Uninstalled Connected Apps permission to authorize an app that is not installed, and without it they see OAUTH_APPROVAL_ERROR_GENERIC (Salesforce Admin Blog). Grant it to few people.
  • Never reviewing the list. Check Connected Apps OAuth Usage on a schedule. The user access review guide shows what else to audit.

FAQ: Connected App in Salesforce

What is a connected app in Salesforce?

It is a setup record that lets an external application authenticate to Salesforce through OAuth or SAML. It stores the app's keys, scopes and access policies.

What is the difference between a connected app and an External Client App?

An External Client App is the newer framework. It stays closed to other orgs until installed and keeps developer settings apart from admin policies. Salesforce disabled new connected app creation by default in Spring '26 (Salesforce Help).

Where do I find connected apps in Salesforce Setup?

Open Setup > App Manager to see them and edit policies. Setup > Connected Apps OAuth Usage shows which apps hold tokens and lets you block them.

Can I still create a new connected app?

Only after Salesforce Support enables it for your org, and Salesforce says that option will go away in future releases (Salesforce Help). Use an External Client App for new integrations.

Why do I get an OAUTH_APPROVAL_ERROR_GENERIC error?

Often the connected app is not installed in your org and the user lacks the Approve Uninstalled Connected Apps permission. An admin can install the app or grant the permission.

Is a connected app the same as an AppExchange app?

No. A connected app is the sign-in link between one outside app and your org. An AppExchange app is a product you install, and it may include a connected app.

Getting Started

Try this on your own org

Start the 14-day free trial, no card. Clientell AI asks before it changes anything in production.

14-day free trial  ·  No credit card required

SOC 2
HIPAA
ISO 27001
Salesforce Partner