---
schema_version: "1"
id: 1b980b4772e9cb72bb74604670d0ab5a86819fbc9adcd7eb3eeb065b028c4efc
title: "Preferred method: OAuth policy configuration for the Connected App"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-preferred-methodoauth-policy-configuration-for-the-connectedapp.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-preferred-methodoauth-policy-configuration-for-the-connectedapp.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1a01b7ebbe76d2b3f724a592d41df191872ecaf86db344e701c59aee1e5faa0a
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Preferred method: OAuth policy configuration for the Connected App

This option is preferred as it works in every situation. The alternative method requires having access to an admin user for the organization.

1.  Open the **connected application** menu, find the connected application for Digital Commerce and click **Manage** and select **Edit Policies**.

2.  Under **Oauth2 Policies**, set **Permitted users** option to **Admin approved users are pre-authorized**.

    ![DCG Connected App Setup - Admin](https://developer.salesforce.com/docs/media/dcg_oauth1.png)

    ![](https://developer.salesforce.com/docs/media/dcg_oauth2.png)

3.  Click **Save**. You now see a Profiles section in the **Edit Policies** page.

4.  Add the profile of the DCG assigned user to the **Profiles** section of the connected application.

    ![DCG Connected App Setup - Profiles](https://developer.salesforce.com/docs/media/dcg_1.png)

    ![DCG Connected App Setup - Oauth Web server flow](https://developer.salesforce.com/docs/media/dcg_2.png)

5.  Click **Manage Profiles** and select the profile you selected above (**System Administrator** is recommended) from the list.

    ![DCG Connected App Setup - Manage profiles](https://developer.salesforce.com/docs/media/dcg_3.png)

6.  Save the selected profile.

7.  In **Manage App > Connected Apps**, find the application you just created and ensure the settings are as below:

    ![DCG Connected App Setup - Settings](https://developer.salesforce.com/docs/media/dcg_validation.png)
