Configure OAuth connection in Databricks platform
- Updated: 2026/06/08
Configure OAuth connection in Databricks platform
Use OAuth to authorize an external application to access your Databricks workspace.
Prerequisites
Ensure you have the following prerequisites:
- Databricks account admin or workspace admin
privileges.
- Account admin — Required to access the Databricks account console, register OAuth applications under , and manage service principals under User management. This is an account-level role.
- Workspace admin — Required to manage permissions within a
specific Databricks workspace — for example,
assigning a service principal access to workspace resources.
Depending on the tasks, the required privilege might vary, some of the tasks are:
Task Required privilege Register an OAuth app / App connection Account admin Create a service principal Account admin Assign workspace permissions to a service principal Workspace admin Configure Workload Identity Federation trust policies Account admin
- Your Databricks workspace URL
(
https://dbc-workspace-id.cloud.databricks.com/or equivalent) - The external application's redirect URI (for U2M)
Databricks supports two flows depending on whether a user
identity is involved.
| User-to-Machine (U2M) | Machine-to-Machine (M2M) | |
|---|---|---|
| When to use | A named user authorizes access interactively via browser | Automated access with no user interaction — bots, scheduled jobs, service accounts |
| Identity | End user | Service principal |
| Requires browser | Yes | No |
| Secrets involved | No long-lived secrets | Client secret or federated identity |