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

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

> [!WARNING]
>
> You must have Databricks account admin privileges to create app connections.

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

## Find your Account ID

The Account ID is a UUID required for all account-level API calls.

**1. Sign in to the Account Console**

Sign in to the [Databricks Account Console](https://accounts.cloud.databricks.com).

**2. Copy your Account ID**

Click your **user avatar** in the top-right corner. Your Account ID is shown under **My account** — click the copy icon next to it.

## Create an app connection

Register a custom OAuth app connection in your own Databricks account. An app connection only registers the application in the account it is created in, so each Databricks account that connects needs its own.

**1. Navigate to App Connections**

In the left sidebar, click **Settings**, then click the **App connections** tab.

**2. Add a New Connection**

Click **Add connection** and fill in the following details:

<ul>
  <li>**Application name**: Enter a descriptive name (e.g. "StackOne Integration")</li>
  <li>**Redirect URLs**: Enter the **Callback URL** StackOne shows you</li>
  <li>**Access scopes**: Select **All APIs** — this is required for StackOne to access the SCIM provisioning APIs</li>
  <li>**Generate a client secret**: Check this box to generate a secret for server-side authentication</li>
  <li>**Access Token TTL**: Leave as default (60 minutes).</li>
  <li>**Refresh Token TTL**: Set to the maximum value of **129,600 minutes (90 days)** to avoid the account going into an errored state when the refresh token expires. After 90 days, you will need to re-authenticate by editing the account in StackOne.</li>
</ul>

**3. Copy the Credentials**

After clicking **Add**, a **Connection created** dialog appears with a warning: "Make sure to copy the secret now. You won't be able to see it again." Copy both values using the copy icons and click **Done**.

<ul>
  <li>**Client ID** — click the copy icon</li>
  <li>**Client Secret** — click the copy icon; it is shown only once</li>
</ul>

## Understanding Scopes

Scopes control which Databricks APIs the OAuth connection can access. The scope is configured during the app connection setup (Access scopes) and also sent in the OAuth authorization request.

**1. Configure scopes**

Enables actions: Add Group Member, Assign Metastore To Workspace, Create Budget, Create Credential Configuration, Create Custom App Integration, Create Group, Create IP Access List, Create Log Delivery Configuration, Create Metastore, Create Network Configuration, Create Or Update Workspace Permission Assignment, Create Service Principal, Create Service Principal Secret, Create User, Delete Budget, Delete Credential Configuration, Delete Custom App Integration, Delete Group, Delete IP Access List, Delete Metastore, Delete Metastore From Workspace, Delete Network Configuration, Delete Service Principal, Delete Service Principal Secret, Delete User, Delete Workspace Permission Assignment, Download Billable Usage, Get Budget, Get Credential Configuration, Get Custom App Integration, Get Group, Get IP Access List, Get Log Delivery Configuration, Get Metastore, Get Network Configuration, Get Service Principal, Get Storage Configuration, Get Unified Credentials, Get Unified Group, Get Unified Organization, Get Unified Role, Get Unified User, Get User, Get Workspace, Get Workspace Metastore, List Budgets, List Credential Configurations, List Custom App Integrations, List Groups, List IP Access Lists, List Log Delivery Configurations, List Metastore Workspace Assignments, List Metastores, List Network Configurations, List Service Principal Secrets, List Service Principals, List Storage Configurations, List Unified Groups, List Unified Organizations, List Unified Roles, List Unified Users, List Users, List Workspace Permission Assignments, List Workspaces, Remove Group Member, Update Budget, Update Custom App Integration, Update Group, Update Log Delivery Configuration, Update Metastore, Update Service Principal, Update User

The **Scopes** field defaults to `all-apis offline_access` if left empty. The `offline_access` scope is required to receive a refresh token for long-lived sessions. Use individual scopes separated by spaces to restrict access:

<ul>
  <li>
    all-apis
  </li>

  <li>
    offline\_access
  </li>

  <li>
    scim
  </li>

  <li>
    access-management
  </li>

  <li>
    authentication
  </li>

  <li>
    billing
  </li>

  <li>
    networking
  </li>

  <li>
    provisioning
  </li>

  <li>
    unity-catalog
  </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.