Connected App Access Policies

5 minutes 5 Questions

Connected App Access Policies in Salesforce control how external applications authenticate and interact with your org through OAuth, SAML, or OpenID Connect. A connected app is a framework that lets an external application (mobile app, integration tool, third-party service) connect to Salesforce using APIs. Access policies define who can use the app, how users authorize it, and what security constraints apply. Key policy settings include: 1. Permitted Users: Admins choose between 'All users may self-authorize' (any user with login access can approve the app on first use) or 'Admin approved users are pre-authorized' (only users assigned via profiles or permission sets can access the app, with no consent prompt). Pre-authorization is the preferred approach for tighter security. 2. IP Relaxation: Determines whether the app must honor the org's login IP restrictions. Options are 'Enforce IP restrictions', 'Relax IP restrictions' (bypass them), or 'Relax IP restrictions with second factor', balancing usability for mobile users against security. 3. Refresh Token Policy: Controls how long users stay authenticated without re-entering credentials. Options include refresh token valid until revoked, immediate expiration, expiration after a set period, or expiration if not used for a specified time. 4. Session Policies: Timeout values for the app's session, which can override org-wide session settings. High assurance session requirements can also be enforced. 5. OAuth Scopes: Define what data and actions the app can access (e.g., api, refresh_token, full, web), applying the principle of least privilege. 6. Start URL and Mobile Integration: Configure where users land and whether PIN protection applies on mobile devices. Admins manage these under Setup > Connected Apps > Manage Connected Apps, where they can also monitor usage, block an app, or revoke tokens. For Administrator II, understanding these policies is essential to securing integrations, enforcing MFA, and controlling third-party access without compromising user productivity.

Connected App Access Policies: The Complete Guide for the Salesforce Advanced Administrator Exam

Why Connected App Access Policies Matter

Every time an external application, mobile app, or integration talks to Salesforce through OAuth, it does so through a Connected App. The access policies attached to that Connected App are the control panel that determines who can use the app, from where they can use it, how long their access lasts, and what extra security (such as multi-factor authentication or a high-assurance session) is required. If you misconfigure these policies, you either lock out legitimate users or, far worse, leave an open door for stolen tokens and unauthorised API access.

For the Advanced Administrator exam, this topic sits inside the Advanced Security and Access domain. Expect scenario-based questions that describe a business requirement (for example, 'only approved users may use the mobile app' or 'sessions must expire after one hour of inactivity') and ask you to pick the correct policy setting. Knowing the exact names of the settings and what each one does is the key to scoring well.

What Is a Connected App?

A Connected App is a framework that lets an external application integrate with Salesforce using APIs and standard protocols such as OAuth 2.0, SAML, and OpenID Connect. It defines:

• A Consumer Key and Consumer Secret (the app's credentials)
• A Callback URL where Salesforce returns the user after authentication
• OAuth Scopes that define what the app is permitted to do (for example, api, refresh_token, full, web, openid)

Connected Apps are created under Setup > App Manager > New Connected App. Once created, administrators manage their security behaviour under Setup > Manage Connected Apps (or by clicking Manage from App Manager). This is where access policies live.

Important nuance: Connected Apps installed from the AppExchange or provided by Salesforce (such as Salesforce Mobile) also appear under Manage Connected Apps, and you can apply the same policies to them even though you did not build them.

The Core Access Policies and How They Work

1. Permitted Users (OAuth Policy)
This is the single most tested setting. It has two values:

• All users may self-authorize – Any user with the correct login can access the app. The first time they use it, they see an OAuth consent screen asking them to allow access. This is the default.
• Admin approved users are pre-authorized – Only users whose Profile or Permission Set has been explicitly assigned to the Connected App can use it. Users do not see a consent screen because the administrator has already approved on their behalf. Everyone else is blocked.

When you choose Admin approved users are pre-authorized, two new related lists appear on the Connected App detail page: Profiles and Permission Sets. You add the appropriate profiles or permission sets there. Exam tip: if the scenario says 'restrict the app to a specific group of users' or 'users should not have to approve the app', the answer is Admin approved users are pre-authorized plus assignment via profile or permission set.

2. IP Relaxation
This controls whether the organisation's or profile's login IP ranges are enforced when a user authenticates through the Connected App. Options:

• Enforce IP restrictions – Users must be within the login IP ranges defined on their profile. The strictest setting.
• Relax IP restrictions with second factor – If the user is outside the trusted IP range, they can still get in but must complete identity verification (MFA challenge).
• Relax IP restrictions – IP ranges are ignored entirely for this app. Useful for mobile apps where users roam between networks.
• Relax IP restrictions for activated devices – Users on a device that has already completed identity verification bypass IP restrictions; new devices must verify.

Exam tip: if the scenario mentions 'field sales reps using the mobile app from different locations' and 'profile login IP ranges are blocking them', the fix is an IP Relaxation setting, typically Relax IP restrictions or Relax IP restrictions with second factor if security is a stated concern.

3. Refresh Token Policy
A refresh token lets the app obtain a new access token without asking the user to log in again. The policy controls how long that refresh token stays valid:

• Refresh token is valid until revoked – Never expires unless an admin or user revokes it. Most convenient, least secure.
• Immediately expire refresh token – Effectively forces re-authentication every time the access token expires.
• Expire refresh token after X – Fixed lifetime (for example, 90 days) regardless of usage.
• Expire refresh token if not used for X – Inactivity-based expiry; frequent users stay logged in, dormant users are cut off.

Exam tip: 'Users who have not used the app in 30 days must log in again' maps to Expire refresh token if not used for 30 days. 'Everyone must re-authenticate every 90 days no matter what' maps to Expire refresh token after 90 days.

4. Timeout Value (Session Timeout)
You can set a session timeout specific to this Connected App that overrides the organisation-wide session timeout found in Session Settings. If left as None, the org or profile session timeout applies. Exam tip: when the question asks for an app-specific session length that differs from the org default, the answer is the Connected App's Timeout Value, not the org-wide Session Settings.

5. High Assurance Session Required
When enabled, users must have a high-assurance session to access the app. A high-assurance session is typically obtained by completing MFA at login. If the user's current session is only standard assurance, Salesforce prompts them to raise the session level before granting access. This is the Connected App equivalent of the session security level policies used for reports, dashboards, and Setup. Exam tip: 'require MFA before using this integration' or 'only trusted sessions may use the app' points to High assurance session required.

6. Single Logout and Session Policies
For SAML-enabled Connected Apps, you can require that logging out of Salesforce also logs the user out of the connected app. Additional session policy options can require users to re-enter their password or complete identity verification within the app at defined intervals.

7. Mobile App Policies
For mobile Connected Apps (Salesforce Mobile, Mobile Publisher apps, and custom mobile apps), you can enforce:

• Require PIN after X minutes of inactivity
• PIN length
• Whether the app may run on jailbroken or rooted devices
• Clipboard, custom attributes, and offline data controls

Exam tip: 'Users must enter a PIN when the mobile app is idle for 10 minutes' is a mobile app policy on the Connected App, configured under Manage Connected Apps.

8. Custom Attributes and Start URL
You can define a Start URL so that users launching the app from the App Launcher land on a specific page, and you can pass custom attributes to the app. These are less about security and more about user experience, but they do appear on the same management page.

Managing and Monitoring Access

Connected Apps OAuth Usage (Setup > Connected Apps OAuth Usage) lists every Connected App that users in your org have authorised, how many users have used each, and lets you Install, Block, or Uninstall apps. Blocking an app immediately revokes all tokens and prevents any new authorisation. This is the first place to look when the question says 'an unknown app is accessing our data' or 'we need to stop an integration immediately'.

User-level revocation: On an individual user record, the OAuth Connected Apps related list shows every app that user has authorised. An administrator (or the user themselves from their personal settings) can click Revoke to kill that user's tokens for a specific app without affecting anyone else.

Login History shows the Connected App used for each login, so you can audit which integrations are generating API traffic.

API Access Control (API Client Allowlisting)
This is an org-wide, advanced feature that must be enabled by Salesforce Support. Once enabled, no Connected App can access the org via API unless it is explicitly approved (pre-authorised with profiles or permission sets). Users who need unrestricted access can be granted the Use Any API Client user permission. Exam tip: if the requirement is 'block every unapproved third-party application from connecting to our org via API', the answer is API Access Control, not individual Connected App policies.

Putting It Together: A Worked Scenario

Universal Containers has a custom mobile app. Only members of the Field Service team should be able to use it, they travel constantly so profile IP ranges must not block them, but the company wants MFA if they connect from an unknown network, and anyone who has not used the app for 60 days must log in again.

Correct configuration:
• Permitted Users = Admin approved users are pre-authorized, assign the Field Service profile or a permission set
• IP Relaxation = Relax IP restrictions with second factor
• Refresh Token Policy = Expire refresh token if not used for 60 days

Notice that one scenario touches three separate policies. The exam loves this pattern, so read every sentence of the question and map each requirement to its own setting.

Exam Tips: Answering Questions on Connected App Access Policies

Tip 1 – Learn the exact option names. The exam uses the real UI labels. Know the difference between All users may self-authorize and Admin approved users are pre-authorized, and the four IP Relaxation options word for word.

Tip 2 – 'Restrict who can use the app' always means pre-authorisation. Whenever a question asks to limit a Connected App to certain users, choose Admin approved users are pre-authorized and then assign profiles or permission sets. Distractors will suggest sharing rules, roles, or org-wide defaults, none of which control Connected App access.

Tip 3 – Separate IP from session from token. Questions often blend location, duration, and re-authentication requirements. Ask yourself: Is this about where (IP Relaxation), how long a session lasts (Timeout Value), or when the user must log in again (Refresh Token Policy)?

Tip 4 – 'Mobile users blocked by IP ranges' means IP Relaxation. Do not pick 'remove the login IP ranges from the profile' when a less drastic Connected App setting solves the problem.

Tip 5 – 'Not used for X days' versus 'after X days'. Inactivity-based expiry is Expire refresh token if not used for X; absolute expiry is Expire refresh token after X. The exam tests this distinction directly.

Tip 6 – MFA or trusted session requirements point to High Assurance. If the question says users must verify their identity or use MFA before the app works, select High assurance session required.

Tip 7 – Know where to revoke. To stop one user: the user's record, OAuth Connected Apps related list, Revoke. To stop everyone: Connected Apps OAuth Usage, Block. To stop all unapproved apps org-wide: API Access Control (enabled by Salesforce Support).

Tip 8 – Policies apply to installed and packaged apps too. You can and should apply access policies to Salesforce Mobile and AppExchange Connected Apps, not just apps you build yourself.

Tip 9 – Scopes are not access policies. OAuth scopes define what the app can do once connected; access policies define who can connect and under what conditions. If a question asks to limit the app to read-only API calls, that is a scope decision, not a policy decision.

Tip 10 – Eliminate the distractors. Wrong answers commonly include: changing org-wide Session Settings when an app-specific timeout is needed, using Login Hours or Login IP Ranges on the profile when IP Relaxation is the right lever, or deleting the Connected App when Block would suffice. Choose the most targeted, least disruptive setting that satisfies every requirement in the scenario.

Quick Reference Summary

• Who can use it – Permitted Users (self-authorize vs admin pre-authorized) plus Profiles and Permission Sets
• Where they can use it – IP Relaxation (Enforce / Relax with second factor / Relax / Relax for activated devices)
• How long a session lasts – Timeout Value
• When they must re-authenticate – Refresh Token Policy
• Security level required – High assurance session required
• Mobile protections – PIN, inactivity lock, jailbreak detection
• Monitoring and shutdown – Connected Apps OAuth Usage, user-level Revoke, Login History
• Org-wide lockdown – API Access Control with the Use Any API Client permission for exceptions

Master these mappings and you will be able to dissect any Connected App scenario the Advanced Administrator exam presents.
Test mode:

Admin II - Connected App Access Policies Example Questions

Test your knowledge of Connected App Access Policies

Question 1

When a connected app's Permitted Users policy is set to 'Admin approved users are pre-authorized,' which users can access the app through OAuth?

Question 2

Cloud Kicks restricts each sales profile to office login IP ranges. A traveling sales rep opens the company's mobile app, which authenticates through a connected app, and works normally from a hotel. When the same rep tries to log in to Salesforce in a browser on that hotel network, the login is denied. The advanced administrator confirms the rep's profile has not changed. What explains this behavior?

Question 3

Universal Containers uses a connected app for a mobile inventory tool. Its OAuth policy lets any user authorize it, and several sales users have already connected. Security now requires that only the field operations team can use the app, and that users outside the team lose access, including existing connections. The team already shares a role but has users on several profiles. What should the administrator do?

More Connected App Access Policies questions
27 questions (total)