Skip to main content
Connect a customer-managed Databricks service principal to run account and workspace actions from Flow automations. Choose which teams and actions can use each connection.

Prepare in Databricks

This Preview integration supports Databricks on AWS. Azure Databricks and Databricks on Google Cloud require different connection types and are not supported.Create a Databricks service principal for Flow. Each customer owns its client ID and OAuth secret; Flow does not use a shared Databricks credential. In the Databricks account console:
  1. Copy the Databricks account ID.
  2. Create a service principal.
  3. To use every account-management action, grant the service principal the account-admin role. For production connections, grant only the roles required by the selected actions.
  4. Assign the service principal to the workspace that automations will manage.
  5. Grant the required workspace entitlements and resource permissions.
  6. Generate an OAuth secret. Copy the client ID and secret immediately because Databricks shows the secret only once.
  7. Copy the workspace origin, such as https://dbc-a1b2345c-d6e7.cloud.databricks.com.
See Databricks OAuth for service principals and manage service principals.Some actions require optional Databricks capabilities:
  • Resolve User requires Automatic Identity Management.
  • Get Cluster and Restart Cluster require classic compute. Default Interactive Compute and Default Automated Compute are serverless objects, not classic clusters.
  • List Clusters lists classic clusters only and can return no results in a serverless-only workspace.
Use a Databricks AWS trial or an existing account for testing. Create disposable identities and workloads instead of using production resources.

Connect in Flow

1

Find the Databricks integration.

  1. Open Integrations.
  2. Choose Add connection.
  3. Search for Databricks.
  4. Select the Databricks card.
Open Flow
2

Connect.

  1. Choose who can use the connection.
  2. Select Continue through the permissions steps.
  3. Give the connection a name.
  4. Enter the Databricks account ID and AWS workspace URL.
  5. Select Connect to open the credential form.
  6. Enter the service principal’s client ID and OAuth secret.
  7. Submit the form and wait for Flow to verify workspace access. Account actions require the service principal’s corresponding account permissions.
  8. Open the connection’s Automations tab.
  9. Enable the connection for the intended teams.
  10. Select the Databricks actions their automations can run.
  11. Choose Save if you changed the selection.

Permissions and scopes

Flow requests the Databricks all-apis OAuth scope for this client-credentials connection. The service principal’s account roles, workspace entitlements, and resource permissions determine which actions can succeed.

Supported actions