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.
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 flow | Use it for | Notes |
|---|---|---|
| Authorization code with PKCE | Web, mobile and single-page apps with a user | No secret kept in the browser. The best default. |
| JWT bearer | Server jobs with no user at the screen | Signed with a certificate you upload |
| Client credentials | Server jobs that run as one user | The run-as user is set on the app |
| Device flow | Devices with no browser | User approves on a second screen |
| Username-password | Old integrations only | Avoid. 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 app | External Client App | |
|---|---|---|
| Status | Legacy. New creation blocked by default. | The path Salesforce recommends for new integrations |
| Setup page | App Manager | External Client App Manager |
| Default reach | Usable by other orgs without installation | Closed until installed in your org |
| Settings | Developer and admin settings mixed | Developer settings and admin policies kept apart |
| Packaging | First-generation style | Second-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 ASCCommon 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.
Sources: Salesforce Help: New Connected Apps Can No Longer Be Created in Spring '26, Salesforce DX Developer Guide: Create a Connected App in Your Org, Salesforce Developers Blog: Secure Your Org with External Client Apps, Salesforce Help: Impact of Changing OAuth Permitted Users Policy, Salesforce Admin Blog: Connected App Usage Restrictions. Last reviewed .
Related Salesforce Terms
4 termsNamed Credential
SecurityA Named Credential securely stores the endpoint URL and authentication settings for an external service, letting Apex callouts reference a logical name instead of hard-coded credentials.
Permission Set
AdministrationA Permission Set is a collection of permissions that can be assigned to users on top of their profile to grant additional access without changing the profile itself.
Profile
AdministrationA Profile in Salesforce defines the baseline set of permissions, page layout assignments, and system settings that apply to every user assigned to it.
AppExchange
PlatformAppExchange is Salesforce's official marketplace where customers can discover, install, and manage third-party apps, components, and consulting services.
What should I read next?
More in Security
View all →Field-Level Security (FLS)
FLS (Field-Level Security) controls which users can see or edit each field, set per profile or permission set. A field with no access is hidden everywhere: layouts, reports, list views and API responses.
Organization-Wide Defaults (OWD)
OWD (Organization-Wide Defaults) set the baseline record access for each object: Private, Public Read Only, Public Read/Write, or Controlled by Parent. Role hierarchy and sharing rules can only open access further, never close it.
Sharing Rule
A Sharing Rule in Salesforce automatically extends record access to specific groups of users beyond what Organization-Wide Defaults and the role hierarchy provide.
Shield Platform Encryption
Shield Platform Encryption encrypts sensitive data at rest in Salesforce using tenant-specific encryption keys, protecting it beyond standard database-level encryption.
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