> ## 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 Salesforce Marketing Cloud with OAuth 2.0 (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> Creating an Installed Package needs the Installed Package Administer permission in Marketing Cloud Setup.

## Create a Web App integration

Register an Installed Package with a Web App API integration on your own Marketing Cloud tenant.

**1. Open Installed Packages**

In Marketing Cloud, click your name in the top right, then **Setup**. Under **Platform Tools** > **Apps**, click **Installed Packages** and click **New**.

<ul>
  <li>**Name**: StackOne</li>
  <li>Click **Save**</li>
</ul>

**2. Add the API integration**

On the package, click **Add Component**, choose **API Integration**, then **Web App**.

<ul>
  <li>**Redirect URI**: the **Callback URL** shown beside this form</li>
  <li>Select the scopes this connector needs, then click **Save**</li>
</ul>

**3. Copy the credentials**

In the component's details, copy the **Client Id** and **Client Secret** across. The secret is shown only while you create the component.

## Find your subdomain

The subdomain is the 28-character string beginning with `mc` in the component's **Authentication Base URI**, for example `https://mc563885gzs27c5t9-63k636ttgm.auth.marketingcloudapis.com/`.

<ul>
  <li>Copy only the subdomain across, not the full URL.</li>
  <li>Click **Connect** and sign in to Marketing Cloud with your own user.</li>
</ul>

## 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).


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