> ## 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 Adobe Experience Manager with OAuth 2.0 (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> Requires a modernized AEM as a Cloud Service environment on AEM Release `2024.10.18459.20241031T210302Z` or later, and access to Cloud Manager and to the AEM project's Git repository.

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 the OAuth Web App credential

The credential is created in an Adobe Developer Console project in the same organization as your AEM program.

**1. Create the project**

Sign in to the [Adobe Developer Console](https://developer.adobe.com/console), then under **Quick Start**, click **Create new project**.

<ul>
  <li>Click **Edit project**, enter a name, then click **Save**.</li>
</ul>

**2. Add the AEM API**

On the project page, click **Add API**.

<ul>
  <li>In the **Add API** dialog, filter by **Experience Cloud**.</li>
  <li>Select the AEM API this integration calls, such as **AEM Assets Author API**.</li>
  <li>Click **Next**.</li>
  <li>A card marked **License required** needs a modernized AEM as a Cloud Service environment.</li>
</ul>

**3. Configure the credential**

In the **Configure API** dialog, select **User Authentication**, then **OAuth Web App**.

<ul>
  <li>**Default redirect URI**: the **Callback URL** StackOne shows you when you connect</li>
  <li>**Redirect URI pattern**: the **Callback URL** StackOne shows you when you connect</li>
  <li>Click **Save configured API**.</li>
</ul>

**4. Confirm the credential permissions**

Enables actions: Bind Metadata Schema, Create Asset Relations, Create Batch Request, Create Content Fragment, Create Content Fragment Model, Create Folders, Delete Asset, Delete Content Fragment, Delete Content Fragment Model, Delete Folder, Delete Folders By Path, Find And Replace In Content Fragments, Get Asset, Get Asset (Delivery), Get Asset Metadata, Get Asset Metadata (Delivery), Get Asset Renditions, Get Asset Renditions (Delivery), Get Content Fragment, Get Content Fragment Model, Get Content Fragment Models Scheduled Publication Status, Get Content Fragments Scheduled Publication Status, Get Delivery Content Fragment, Get Delivery Content Fragment By Path, Get Delivery Content Fragment Model, Get Delivery Content Fragment References, Get Fragments Domain, Get Fragments Languages, Get Fragments Permissions, Get Fragments Referenced By, Get Fragments Translations, GraphQL Query (GET), GraphQL Query (POST), List Asset Relations, List Batch Requests, List Content Fragment Models, List Content Fragments, List Delivery Content Fragment Referenced By, List Delivery Content Fragment Variations, List Delivery Content Fragments, List Launch Jobs, List Workflows, Promote Launch, Publish Content Fragment Models, Publish Content Fragments, Rebase Launch, Search Assets, Search Content Fragment Models, Search Content Fragments, Start Workflow, Update Content Fragment, Update Content Fragment Model

In the **Configure OAuth Web App** dialog, **Review the available scopes** and confirm the credential covers the permissions this integration needs, plus `offline_access`, which Adobe requires before it issues a refresh token:

<ul>
  <li>
    openid
  </li>

  <li>
    AdobeID
  </li>

  <li>
    aem.folders
  </li>

  <li>
    aem.assets.author
  </li>

  <li>
    aem.sites.author
  </li>

  <li>
    aem.launches.author
  </li>

  <li>
    aem.contentfragments.delivery
  </li>

  <li>
    aem.assets.delivery
  </li>
</ul>

**5. Copy the credentials**

Copy the **Client ID** and **Client Secret** from the **OAuth Web App** credential across.

## Allow-list the client ID in AEM

An AEM as a Cloud Service environment accepts calls only from the client IDs listed in its API configuration. In the `config` folder of your AEM project, create or open `api.yaml` and add the **Client ID** under each tier this integration calls.

```
kind: "API"
version: "1.0"
metadata:
  envTypes: ["dev", "stage", "prod"]
data:
  allowedClientIDs:
    author:
      - "<client_id>"
```

<ul>
  <li>Commit the file and push it to the Git repository connected to Cloud Manager.</li>
  <li>Deploy it with a **Config Pipeline** in Cloud Manager. Full Stack and Web Tier pipelines do not deploy the file.</li>
  <li>Repeat for every AEM environment an account will connect to.</li>
</ul>

## Find your AEM Hostname

Your **AEM Hostname** is the host of the AEM as a Cloud Service environment this account connects to. The author tier always uses an Adobe-managed host, built from your Program ID and Environment ID.

<ul>
  <li>Format: `author-p{Program ID}-e{Environment ID}.adobeaemcloud.com`</li>
  <li>Example: `author-p1234-e5678.adobeaemcloud.com`</li>
  <li>For an account that calls the delivery-tier actions, use the publish or preview host of the same environment, such as `publish-p1234-e5678.adobeaemcloud.com`.</li>
  <li>Sign in to [Cloud Manager](https://my.cloudmanager.adobe.com) and open your program, then from the left side menu, under **Services**, click **Environments** to list the environments in the program.</li>
  <li>Copy the **AEM Hostname** across, with no `https://` and no trailing slash.</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.