> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Pardot with OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Pardot account in the StackOne Hub using OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Pardot actions.

> [!WARNING]
>
> Requires Salesforce admin access to create an External Client App and to open Business Unit Setup, and an Account Engagement edition that includes API access.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create an External Client App

Register the Salesforce External Client App that StackOne uses to sign each user in to Account Engagement.

**1. Start the app**

Sign in to the Salesforce org that owns your Account Engagement business unit, then open Setup.

<ul>
  <li>**Production** — [Salesforce login](https://login.salesforce.com)</li>
  <li>**Developer** — [Salesforce login](https://login.salesforce.com)</li>
  <li>**Sandbox** — [Salesforce sandbox login](https://test.salesforce.com)</li>
  <li>Create the app in the same environment you will connect — credentials differ per environment.</li>
  <li>Go to **Platform Tools** > **Apps** > **External Client Apps** > **External Client App Manager**.</li>
  <li>Click **New External Client App**.</li>
</ul>

![The External Client App Manager page with the New External Client App button highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-new-app.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=38f10d1c8181d52a16753624fcbe0295)

**2. Fill in basic information**

Complete the **Basic Information** section.

<ul>
  <li>**External Client App Name**: `StackOne Pardot Integration`</li>
  <li>**API Name**: fills in automatically from the External Client App Name</li>
  <li>**Contact Email**: an address your team monitors</li>
  <li>**Distribution State**: **Local**</li>
</ul>

![The Basic Information section with the External Client App Name, API Name, Contact Email and Distribution State fields highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-basic-information.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=f0f67b1258f9276e7db2218cc6fe3e03)

**3. Enable OAuth and set the callback URL**

Expand **API (Enable OAuth Settings)**.

<ul>
  <li>Select **Enable OAuth**.</li>
  <li>**Callback URL**: the **Callback URL** StackOne shows you when you connect</li>
</ul>

![The API section with the Enable OAuth checkbox and the Callback URL field highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-enable-oauth.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=70a73cd7fb53104200f22298fb60c8b9)

**4. Add the OAuth scopes**

Enables actions: Add Prospect To List, Add Tag To Campaign, Add Tag To Dynamic Content, Add Tag To File, Add Tag To Landing Page, Add Tag To Prospect, Add Tag To User, Connect Salesforce Campaign, Create Custom Field, Create Custom Redirect, Create Dynamic Content, Create Email Template, Create Engagement Studio Program, Create Form, Create Landing Page, Create Layout Template, Create List, Create Prospect, Create Tag, Delete Custom Field, Delete Custom Redirect, Delete Email Template, Delete File, Delete Form, Delete Layout Template, Delete List, Delete Prospect, Delete Tag, Download Engagement Program Structure, Get Account, Get Campaign, Get Custom Field, Get Custom Redirect, Get Dynamic Content, Get Email Template, Get Engagement Program, Get File, Get Folder, Get Folder Contents Record, Get Form, Get Landing Page, Get Layout Template, Get List, Get List Email, Get List Email Stats, Get List Membership, Get One-to-One Email, Get Opportunity, Get Prospect, Get Tag, Get Tagged Object, Get Tracker Domain, Get User, Get Visitor Activity, List Campaigns, List Custom Fields, List Custom Redirects, List Dynamic Content, List Email Templates, List Engagement Programs, List Files, List Folder Contents, List Folders, List Forms, List Landing Pages, List Layout Templates, List List Emails, List List Memberships, List Lists, List One-to-One Emails, List Opportunities, List Prospects, List Tagged Objects, List Tags, List Tracker Domains, List Users, List Visitor Activities, Merge Tags, Remove Prospect From List, Remove Tag From Campaign, Remove Tag From Dynamic Content, Remove Tag From File, Remove Tag From Landing Page, Remove Tag From Prospect, Remove Tag From User, Send List Email, Send One-to-One Email, Undelete Prospect, Update Custom Field, Update Custom Redirect, Update Email Template, Update File, Update Layout Template, Update List, Update List Membership, Update Prospect, Update Tag, Upload File, Upsert Prospect By Email

Under **OAuth Scopes**, add each scope listed.

<ul>
  <li>Select the scope in **Available OAuth Scopes**.</li>
  <li>Click the right-arrow button to move it to **Selected OAuth Scopes**.</li>
  <li>`refresh_token` and `offline_access` are one option, **Perform requests at any time (refresh\_token, offline\_access)**.</li>
</ul>

![The OAuth Scopes lists with the move button and the Selected OAuth Scopes list highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-scopes.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=d3a364be99cdc5238b9eeca1941b5039)

<ul>
  <li>
    pardot\_api
  </li>

  <li>
    refresh\_token
  </li>

  <li>
    offline\_access
  </li>
</ul>

**5. Review the enforced security settings**

In the **Security** section, Salesforce selects several settings an admin can't change. Each is marked "To change this required setting, contact Support."

<ul>
  <li>**Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows** stays selected.</li>
  <li>**Enable Refresh Token Rotation** is selected. Salesforce issues a new refresh token on every refresh.</li>
  <li>**Limit Idle Refresh Token Time-to-Live (TTL) to 30 Days** is selected. A connection that sits idle longer than 30 days must be reauthorized.</li>
</ul>

![The Security section with the enforced PKCE, refresh token rotation and idle TTL settings highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-security-settings.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=6058e06d73bf7b3d1cd6a24c5d024a62)

**6. Create the app**

Click **Create**.

<ul>
  <li>The app can take up to 15 minutes before it accepts sign-ins.</li>
</ul>

![The bottom of the new app form with the Create button highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-create.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=6275bc034f5e8645c9deba3aab924189)

**7. Set the app policies**

After you click **Create**, Salesforce opens the app on its **Policies** tab.

<ul>
  <li>Click **Edit**.</li>
  <li>Expand **OAuth Policies**.</li>
  <li>**Permitted Users**: **All users can self-authorize**, so each user signs in with their own Salesforce login</li>
  <li>Under **App Authorization**, choose an option in **Refresh Token Policy (Idle Expiration Time Limit Enforced)**.</li>
  <li>**Expire refresh token if not used for specific time** is the default. Set **Refresh Token Validity Period** and **Refresh Token Validity Unit** to the longest idle window your use case allows.</li>
  <li>**Expire refresh token after specific time** ends the session at a fixed age regardless of use. The user must reauthorize once it elapses.</li>
  <li>**Immediately expire refresh token** ends the connection after a single use and is not suitable for StackOne.</li>
  <li>Click **Save**.</li>
</ul>

![The App Authorization section with the Refresh Token Policy options, the validity fields and the Save button highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-refresh-token-policy.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=56cdafa6c8f1b65a580eb813850c840c)

**8. Copy the Consumer Key and Consumer Secret**

Open the app's **Settings** tab.

<ul>
  <li>Expand **OAuth Settings**.</li>
  <li>Click **Consumer Key and Secret**.</li>
  <li>Salesforce opens **Verify Your Identity** in a new tab and emails you a verification code. Enter the code to continue.</li>
  <li>Copy the **Consumer Key** across.</li>
  <li>Copy the **Consumer Secret** across.</li>
  <li>Salesforce asks you to verify your identity each time you open **Consumer Details**.</li>
</ul>

![The Consumer Details page with the Copy buttons for the Consumer Key and Consumer Secret highlighted and both values masked](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-consumer-details.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=50dadad549d10d803d2de6edd0a8666e)

## Find your Business Unit ID

The Business Unit ID tells Account Engagement which business unit to read and write.

**1. Open Business Unit Setup**

In Salesforce Setup, go to **Platform Tools** > **Account Engagement** > **Business Unit Setup**.

![The Setup menu with Account Engagement and Business Unit Setup highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-business-unit-nav.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=e5c4120bda6031045fe489cc0504d135)

**2. Copy the Business Unit ID**

Each business unit is listed with its **Business Unit Name** and **Business Unit ID**.

<ul>
  <li>Copy the **Business Unit ID** of the business unit you are connecting across.</li>
  <li>Format: an 18-character ID beginning with `0Uv`</li>
</ul>

![The Business Unit Setup page with the Business Unit ID field highlighted](https://mintcdn.com/stackone-60/lr5NNUCg8a6F9_0d/connectors/pardot/images/oauth2-setup-business-unit-id.png?fit=max\&auto=format\&n=lr5NNUCg8a6F9_0d\&q=85\&s=555e89505ae98c64b00e643b068a8d90)

## Sign in with Salesforce

Choose the environment you are connecting, then sign in with your own Salesforce user. Your Salesforce user decides which Account Engagement data the connection can see.

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/pardot/guides/webhook-setup.md)
>
> Configure receiving Events for Pardot into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.