Configure Connected App Policies

In a standard OAuth flow, users often see an approval screen where they confirm that an app is allowed to access their Salesforce data. With headless identity flows, you don’t want to show users a Salesforce approval screen. To preapprove access, configure OAuth policies on your connected app.
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions

  1. Go to your connected app policy page.
    1. From Setup, in the Quick Find box, enter App, and then select App Manager.
    2. Next to your app, click Connected app edit dropdown arrow, and then select Manage.
  2. Click Edit Policies.
  3. Under OAuth Policies, set the Permitted Users policy to Admin approved users are pre-authorized.
  4. Save the policy change.
  5. On the connected app policy page, scroll down to and select Manage Profiles.
  6. Select the headless demo profile that you created.
  7. Save the policy change.