> ## 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 Azure Blob Storage with OAuth 2.0 (Entra ID) (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> Your company's Microsoft Entra admin registers the application once. It needs at least the Application Developer role in Microsoft Entra ID to register an application, and a Global Administrator (or Privileged Role Administrator) to grant admin consent for the Azure Storage permission. Assigning the Azure RBAC role on the storage account requires Owner or User Access Administrator on that account.

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

## Register an application in Microsoft Entra ID

Create the app registration StackOne connects through. Everyone at your company who links an account uses the same app registration, so an admin only creates it once and shares the values.

**1. Create a new app registration**

Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) with an account that has at least the **Application Developer** role. In the left sidebar, open **Entra ID** > **App registrations**.

<ul>
  <li>If you manage more than one tenant, confirm you are in the correct directory using the **Settings** (gear) icon.</li>
  <li>Click **New registration**.</li>
  <li>**Name**: `StackOne Azure Blob Storage`</li>
  <li>**Supported account types**: **Single tenant only**, or **Accounts in this organizational directory only (single tenant)** in the classic form</li>
  <li>**Redirect URI (optional)**: select **Web**, then enter the **Callback URL** StackOne shows you when you connect</li>
  <li>Click **Register**.</li>
</ul>

![The App registrations page with the New registration button highlighted](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-new-registration.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=57ac8d0d92a151542975b561dff72d6d)

**2. Copy the Application (client) ID and Directory (tenant) ID**

After registration the app's **Overview** page opens. In the **Essentials** panel, the **Application (client) ID** is your **Client ID** and the **Directory (tenant) ID** is your **Tenant ID**. Both are the same for everyone at your company.

<ul>
  <li>Format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`</li>
  <li>Enter the **Client ID** and **Tenant ID** when you connect.</li>
</ul>

![The app Overview page showing the Application (client) ID and Directory (tenant) ID](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-overview-ids.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=7a3cf74a03063179f8b76be56620df40)

## Configure API permissions

Azure Storage is the only API permission the app needs.

**1. Add the Azure Storage permission**

Enables actions: Abort Copy Blob, Append Block, Copy Blob, Create Blob Snapshot, Create Container, Delete Blob, Delete Container, Download Blob, Find Blobs By Tags, Get Blob Metadata, Get Blob Properties, Get Blob Service Properties, Get Blob Tags, Get Container ACL, Get Container Metadata, Get Container Properties, List Blobs, List Containers, Set Blob Metadata, Set Blob Properties, Set Blob Service Properties, Set Blob Tags, Set Blob Tier, Set Container ACL, Set Container Metadata, Undelete Blob, Upload Blob

In the app's left menu, open **API permissions**.

<ul>
  <li>Click **Add a permission**.</li>
  <li>Select **Azure Storage**.</li>
  <li>Choose **Delegated permissions**.</li>
  <li>Select each permission listed.</li>
  <li>Click **Add permissions**.</li>
  <li>Leave **Scopes** empty when you connect to use the defaults (`https://storage.azure.com/user_impersonation offline_access`).</li>
</ul>

![The Request API permissions panel with Delegated permissions and user\_impersonation selected](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-api-permissions.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=724cec4a171f7d3e2febc0149b981326)

<ul>
  <li>
    [https://storage.azure.com/user\_impersonation](https://storage.azure.com/user_impersonation)
  </li>
</ul>

**2. Grant admin consent**

On the **API permissions** page, grant consent for the permission.

<ul>
  <li>Click **Grant admin consent for \[your tenant]**.</li>
  <li>Click **Yes**.</li>
  <li>The **user\_impersonation** permission then shows a green **Granted** status.</li>
</ul>

![The Configured permissions table with the Grant admin consent button highlighted](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-grant-consent.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=dfc6b680cda0c4de8626f7e71c8092c5)

## Create a client secret

Add a client secret to the app registration.

**1. Generate the secret**

In the app's left menu, open **Certificates & secrets**, stay on the **Client secrets** tab, and click **New client secret**.

<ul>
  <li>**Description**: `StackOne Integration`</li>
  <li>**Expires**: the recommended 180 days</li>
  <li>Click **Add**.</li>
</ul>

![The Certificates & secrets page with the New client secret button highlighted](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-new-secret.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=b0528961d70fd844c840826baa785663)

**2. Copy the secret value**

Copy the secret's **Value**. It is the same for everyone at your company, and you enter it as the **Client Secret** when you connect.

<ul>
  <li>Do not copy the **Secret ID**, which is a different value.</li>
</ul>

![The client secret Value column shown once after the secret is created](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-secret-value.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=df15562fe42ecfb809cffc98d0743d26)

## Assign an Azure RBAC role on the storage account

Microsoft Entra authenticates the user, but Azure Storage authorizes each operation through an Azure RBAC role assigned on the storage account. Assign the role to the user who will authorize the StackOne connection in the [Azure portal](https://portal.azure.com).

**1. Assign Storage Blob Data Contributor**

In the [Azure portal](https://portal.azure.com), search for **Storage accounts** in the top search bar and select the storage account you want to connect.

<ul>
  <li>In the left sidebar, select **Access Control (IAM)**.</li>
  <li>Click **Add** > **Add role assignment**.</li>
  <li>On the **Role** tab, under **Job function roles**, search for and select **Storage Blob Data Contributor**. It grants read, write, and delete access to blobs and containers, which covers most StackOne actions.</li>
  <li>Click **Next**.</li>
  <li>On the **Members** tab, keep **Assign access to** set to **User, group, or service principal**.</li>
  <li>Click **Select members**.</li>
  <li>Choose the user who will connect StackOne.</li>
  <li>Click **Review + assign** to finish.</li>
  <li>Note the storage account name shown as the page heading and pass it to the user. They enter it as the **Storage Account Name** when they link their account, and cannot read it from the portal themselves unless they also hold the **Reader** role on the storage account.</li>
  <li>If you need to read or set blob tags, find blobs by tags, or read or set container access policies, assign **Storage Blob Data Owner** instead — it is a superset of Storage Blob Data Contributor.</li>
  <li>Reading or setting the blob service properties needs a second role assignment to the same user, since no Storage Blob Data role includes it. Repeat these steps with **Reader** for read-only access, or **Storage Account Contributor** to read and set them.</li>
</ul>

![The Add role assignment blade with the Storage Blob Data Contributor role selected](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-setup-role-assignment.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=f9be7673575b761097af90564a5b649c)

## Find your storage account name

Your storage account name identifies the Azure Storage resource StackOne connects to.

**1. Copy the storage account name**

In the [Azure portal](https://portal.azure.com), use the search bar at the top to search for **Storage accounts** and open it.

<ul>
  <li>If the page opens as **Storage center | Blob Storage**, your storage accounts are listed there as well.</li>
  <li>Select the storage account you want to connect.</li>
  <li>On its **Overview** page, copy the **Storage Account Name** across. It is shown as the page heading.</li>
  <li>Format: `mystorageaccount` (lowercase; 3–24 characters; letters and digits only).</li>
  <li>Example: if your blob endpoint is `https://acme-prod.blob.core.windows.net`, your storage account name is `acme-prod`.</li>
  <li>If the storage account is not listed, you do not hold the **Reader** role on it. Ask the admin who assigned your Storage Blob Data role for the name, or take it from any blob URL you use (the part before `.blob.core.windows.net`).</li>
</ul>

![The storage account Overview page with the account name highlighted](https://mintcdn.com/stackone-60/8Et9wQ4fF8r7yY8U/connectors/azureblobstorage/images/oauth2-config-account-name.png?fit=max\&auto=format\&n=8Et9wQ4fF8r7yY8U\&q=85\&s=a85413fe92830206412d8219b7a33c5b)

## 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/azureblobstorage/guides/webhook-setup.md)
>
> Configure receiving Events for Azure Blob Storage into StackOne.


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