> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oleria.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Databricks

> Connect your Databricks account to Oleria for visibility into every workspace user, group, Unity Catalog grant, workspace-object permission, and secret-scope access across every workspace the account contains.

Oleria provides identity security and access management teams with visibility and intelligence into who has access to what, where they got that access, how they use it, and whether they should even have it. As part of that promise, we integrate your Databricks account into the Oleria platform - one connection covers every workspace the account contains. This page provides step-by-step guidance for connecting Databricks to your Oleria workspace.

> [!NOTE]
>
> This integration operates at the Databricks **account** level, not a single workspace. Once connected, Oleria automatically discovers and syncs every workspace in the account - see [Set up the integration](#set-up-the-integration) for the three required permission grants, plus an optional fourth that unlocks real audit-log activity.

## What Oleria discovers

| Area | Detail |
| :- | :- |
| **Accounts** | Users and service principals, enriched with `accountRole` (`Account Admin`, `Workspace Admin`, or `Workspace User`) and admin status derived from membership in the reserved `admins` group. Covers every workspace's SCIM roster plus account-level-only principals that belong to no workspace. Also includes OAuth app integrations (each one an `Application` identity - a custom integration can sign in as any account user within its OAuth scopes, a Databricks-published integration like Tableau or the CLI cannot) and Delta Sharing recipients (external accounts a share has been granted to). |
| **Groups** | Workspace groups, including nested group membership - a group nested inside another group is modeled as a direct hierarchy relationship, and access granted to a parent group is attributed to members of its nested child groups. An account-level group can also have a **Group Manager**, modeled as a direct management relationship to the group. |
| **Roles** | `account_admin`, plus every other account-wide role Databricks exposes (Marketplace Admin, Billing Admin, the Tag Policy roles, Discovery Manager), each modeled as a role with a membership relationship for every account or group that holds it. Each workspace a principal is assigned to also becomes a per-workspace role - Admin or User - reflecting that workspace's entitlement. |
| **Resources** | Unity Catalog securables (catalogs, schemas, tables, views, volumes, functions, models, external locations, storage credentials), deduplicated across workspaces that share a metastore, plus Unity Catalog connections (to external systems like Snowflake or MySQL) and service credentials, Delta Sharing shares and what they share, workspace objects (notebooks, directories, repos, dashboards, MLflow experiments, Delta Live Tables pipelines), clusters, cluster policies, jobs, SQL warehouses, secret scopes, Databricks Apps, and model-serving endpoints. |
| **Access grants** | Three independent access-control subsystems, each preserving its native permission strings verbatim: Unity Catalog grants (`SELECT`, `MODIFY`, `USE_CATALOG`, `USE_CONNECTION`, and similar), workspace-object permissions (`CAN_VIEW`, `CAN_RUN`, `CAN_MANAGE`, `IS_OWNER`, and similar), and secret-scope ACLs. Also tracks each Unity Catalog securable's **owner** (a user, group, or service principal) as a management relationship, and each Delta Sharing recipient's `SELECT` grant on the share it was given access to. |
| **Credentials** | Personal access tokens and service principal OAuth client secrets - each also modeled as its own non-human identity (a `PAT` account for a user's token, an `APIToken` account for a service principal's token, a `Secret` account for a service principal's OAuth client secret) so it can be revoked directly, without disabling the service principal or any of its other secrets - plus the secret a Unity Catalog connection holds for the external system it reaches, service principals' git credentials, and a Delta Sharing recipient's bearer token. Tracked as metadata (existence, expiry, custody) - never the credential value itself. |
| **Impersonation** | Account-level "Service Principal User" and "Service Principal Manager" role grants, which let a user or group obtain OAuth tokens and act as a service principal; a custom OAuth app integration's delegation over every account user, scoped to what it was granted; and `group.assumer` role assumption, where a principal's access is replaced by a group's for the session. |
| **Activity** | Job-run history from every workspace in the account, always. If you give Oleria a SQL warehouse (optional - see [Set up the integration](#set-up-the-integration)), Oleria also reads Databricks' own audit log for logins and logouts, principal and group changes, account and workspace admin grants, grant and ACL changes, token and secret lifecycle, which identity actually triggered a job run, and OAuth integrations' last sign-in. |

Oleria uses this data for dormant account detection and access reviews, synced across every workspace in the account on Oleria's [regular sync schedule](https://docs.oleria.com/integrations/overview.md#sync-model), not just the workspace you connect from.

## Prerequisites

* Administrator permission on the Oleria workspace
* Access to your Databricks account console to create a service principal
* Your Databricks **account ID** (found in the account console, under your username)
* To enable real audit-log activity (optional): a SQL warehouse per region your account has workspaces in

> [!NOTE]
>
> Databricks separates **account-level** admin from **workspace-level** admin. This integration's service principal needs all three: `account_admin` at the account level, explicit access assigned to every individual workspace it should read, and metastore admin on each metastore for full Unity Catalog coverage. Missing any one of these is a common setup mistake - see the steps below.

## Set up the integration

**1. Create a service principal and OAuth secret**

In the Databricks account console, go to **User management** -> **Service principals** and add a new service principal (for example, `oleria-connector`). Open it, go to the **Secrets** tab, and select **Generate secret**. Copy the **Client ID** and **Secret** immediately - Databricks shows the secret only once.

**2. Grant account\_admin**

Still in the account console, open the service principal's **Roles** tab and grant it **Account admin**. This is required for account-wide operations - enumerating every workspace, real account-level user and group listings, service principal credential inventory, and impersonation rule sets.

> [!WARNING]
>
> Workspace-level "Admin access" does **not** grant `account_admin` and does not unlock any account-level API. The two are entirely separate grants - a service principal can hold one without the other.

**3. Assign the service principal to every workspace**

In the account console, go to **Workspaces**, select a workspace, open its **Permissions** tab, and add the service principal with **Admin** permission (not **User**). Repeat for every workspace in the account you want Oleria to see.

> [!WARNING]
>
> `account_admin` does not automatically grant access to any workspace. Each workspace needs its own explicit permission assignment - skipping a workspace means Oleria's account-wide sync simply won't reach it, with no error surfaced elsewhere.

> [!WARNING]
>
> Grant **Admin**, not **User** - several reads Oleria depends on are admin-gated on the Databricks side: personal access token inventory, workspace-object and secret-scope ACLs, and the non-federated fallback for the Disable workspace user action. A service principal with only **User** access still produces a healthy-looking connection, just missing credentials and most access grants, with no error surfaced.

> [!WARNING]
>
> The Activity row lists **CAN VIEW**: the service principal sees a job's runs only if it can view that job. Workspace **Admin** covers every job in the workspace.

**4. Grant metastore admin**

In the account console, go to **Catalog**, open each metastore your workspaces use, and set the service principal (or a group that contains it) as **Metastore admin**. Repeat for every metastore - an account with workspaces in multiple regions typically has one metastore per region.

> [!WARNING]
>
> Without metastore admin, Oleria sees only the Unity Catalog securables the service principal owns or holds an explicit privilege on, not the full metastore, and the **Revoke Unity Catalog privilege** action works only on securables the service principal owns or can manage. Oleria doesn't flag this on the connection - it still shows as **Healthy** - though the **Revoke Unity Catalog privilege** action's own validation does list metastore admin as a required permission. On the Integrations page, a connection without metastore admin shows the Resource row as needing **USE CATALOG**: Oleria lists only the catalogs the service principal owns or can use.

**5. Enable audit-log activity (optional)**

Databricks' audit log (`system.access.audit`) is only queryable through a SQL warehouse, and Oleria never picks one on its own - you choose it. In each region your account has workspaces in, pick a SQL warehouse in one workspace and, in that workspace, grant the service principal **Can use** on it (**SQL Warehouses** -> the warehouse -> **Permissions**). Make sure the `access` system schema is enabled on that region's metastore, then grant the service principal `USE CATALOG` on `system`, `USE SCHEMA` on `system.access`, and `SELECT` on `system.access.audit` - metastore admin alone may not include these. The audit table only covers the region of the workspace you query it from. You'll enter each warehouse's ID in the connection form in the next section.

> [!NOTE]
>
> This step is optional. Skip it and Oleria's Activity data comes from job-run history only, the same as before. A wrong warehouse ID, a missing grant, or an unenabled `access` schema is logged and Oleria falls back to job-run history rather than failing the connection - on some account tiers, enabling the `access` schema is a Databricks-only action your admin can't self-serve, so contact Databricks support if the grants above don't take effect. Each sync starts the warehouse if it's stopped, which uses Databricks compute - a serverless warehouse with a short auto-stop keeps this small.

## Connect Databricks to Oleria

**1. Open the integration**

Log in to your Oleria workspace and navigate to **Integrations** -> **Databricks** -> **Connect**.

**2. Complete the connection form**

| Field | Notes |
| :- | :- |
| **Workspace URL** | Required. The home workspace's REST API host, for example `dbc-xxxxxxxx-xxxx.cloud.databricks.com` (AWS), `adb-xxxx.azuredatabricks.net` (Azure), or a `*.gcp.databricks.com` host (Google Cloud) - no scheme, no trailing slash. This is only the connection's home workspace - the connection also fans out to every other workspace in the account. |
| **Account ID** | Required. The Databricks account ID from the account console. |
| **Client ID** | Required. The service principal's application ID. |
| **Client Secret** | Required. The service principal's OAuth secret, shown only once at generation. |
| **SQL Warehouse ID** | Optional. Enables real audit-log activity (see the previous step). Leave blank to keep Activity on job-run history only. |
| **SQL Warehouses in Other Regions** | Optional. For a multi-region account, one `<workspace host>=<warehouse id>` pair per line - a warehouse in a workspace in each other region. Without an entry for a region, that region's workspace activity isn't read, and Oleria doesn't flag the missing region on the connection. |

**3. Complete the connection**

Oleria validates both the workspace-scoped and account-scoped credentials, enumerates every workspace in the account, discovers roles, resources, and access, and begins the first sync.

## Verify the integration

Confirm the new instance appears on the **Connected** tab of your Oleria **Integrations** page with a status of **Healthy**. Oleria syncs users, groups, Unity Catalog resources, workspace objects, and access grants from every workspace in the account on its [regular sync schedule](https://docs.oleria.com/integrations/overview.md#sync-model) once the initial sync completes.

## Remediation actions

| Action | Notes |
| :- | :- |
| **Disable workspace user** | Deactivates a user or service principal at the account level, which blocks access to the account console and every workspace in the account - including ones you haven't assigned to Oleria - within roughly 20 seconds to 1.5 minutes. Requires `account_admin`. If the account has no account-level SCIM record for the target (a non-federated tenant), Oleria falls back to deactivating it in a single workspace instead - the connection's home workspace if it's a member there, otherwise the first other workspace that contains it - which requires only workspace admin access. Oleria refuses to run this action against the service principal this connection authenticates as. Reversible - undo re-enables it only if this action disabled it; a user or service principal that was already deactivated beforehand stays deactivated. |
| **Add to workspace group** | Adds a user or service principal to a workspace group. Oleria rejects this at validation if the target group is an account-level group assigned to the workspace, or if the target is the service principal this connection authenticates as. Oleria requires workspace admin access for this action. Reversible. |
| **Remove from workspace group** | Removes a user or service principal from a workspace group. Oleria rejects this at validation if the target group is an account-level group assigned to the workspace, or if the target is the service principal this connection authenticates as. Oleria requires workspace admin access for this action. Reversible. |
| **Revoke Unity Catalog privilege** | Removes a specific privilege grant on a Unity Catalog securable (catalog, schema, table, and similar). Works with metastore admin, or on securables the service principal owns or can manage. |
| **Disable NHI accounts** | For a personal access token (user- or service-principal-owned): revokes it in its workspace and confirms it's gone before reporting success. Requires workspace admin access. Irreversible - create a new token instead. For a service principal's OAuth client secret: deletes that one secret and confirms it's gone from the list before reporting success, leaving the service principal and its other secrets active. Requires `account_admin`. Irreversible - create a new secret instead. For a service principal itself: deactivates it at the account level, using the same account-level write as Disable workspace user. Requires `account_admin`. Reversible - undo re-enables it only if this action disabled it. Oleria refuses to run this against the service principal this connection authenticates as. |

> [!NOTE]
>
> Workspace group actions apply to workspace-local groups only, since Databricks' group-membership API is workspace-scoped. An account-level group assigned to a workspace shows up in that workspace's group listing, but Oleria rejects any add or remove action against it at validation rather than letting it fail against Databricks.

> [!NOTE]
>
> Databricks doesn't offer a read-only account-level role, so discovery and remediation actions both use the same service principal and the grants you set up above - `account_admin`, workspace Admin, and metastore admin. Oleria only makes changes in Databricks when you run a remediation action.

## Known limitations

* **Audit-log activity is opt-in and has a gap window:** without a SQL warehouse configured (see [Set up the integration](#set-up-the-integration)), Activity is job-run history only - a user who works only through the browser under SSO, holds no personal access token, and never triggers a job has no activity signal from this integration. With a warehouse configured, Oleria reads `system.access.audit` about an hour behind real time so late-arriving rows are still caught, but a row that lands more than roughly an hour after its event is still missed - Databricks' audit table has no field Oleria can use to resume from exactly where it left off. The audit table is also regional: give Oleria a warehouse in every region your account has workspaces in, or that region's workspace activity isn't read (account-level activity is still captured once, from the home region).
* **No workspace-object permission revocation:** Unity Catalog privileges can be revoked as a remediation action, but revoking a workspace-object permission - on a cluster, job, notebook, cluster policy, Databricks App, model-serving endpoint, or similar - is not yet available as a remediation action.
* **No grant actions:** Oleria does not support granting a Unity Catalog privilege, granting a workspace-object permission, or granting a Service Principal User/Manager role through this integration - only the corresponding revoke, disable, and remove actions are available.
* **Impersonation and role-grant data may be incomplete:** account-level impersonation and role-grant rule sets (Service Principal User/Manager, Group Manager, `group.assumer`, and the other account-wide roles) are read defensively - if Databricks returns a temporary error for a given tenant, Oleria logs it and continues rather than failing the sync, which means these relationships may be under-reported on some tenants.
* **Job-run activity only credits whoever submitted a one-time run, or a job's service principal:** a one-time run submitted through `runs/submit` (Airflow, ADF, the CLI, or the SDK) is credited to whoever submitted it, human or service principal. Any other job run is credited to the job's run-as identity only when that's a service principal, and to no one otherwise - not even the job's creator - because Databricks' Jobs API doesn't say who triggered a run. With a SQL warehouse configured, a manual **Run now** or a `runs/submit` call also produces its own audit-log activity crediting whoever actually triggered it - so for those two cases the signal exists either way, just as a separate activity record when it comes from the audit log.
* **Some OAuth app integration details aren't visible:** Oleria can't see a custom integration's client secret value (Databricks has no API that returns it), a Databricks-published integration's OAuth scopes, or which specific users have signed in through an integration - only an aggregate last-sign-in date, and only with a SQL warehouse configured.
* **Delta Sharing coverage is outbound only:** Oleria discovers shares your account provides and the recipients granted access to them, but not shares your account receives from an external provider (foreign catalogs).
* **Some resource types aren't discovered yet:** vector search endpoints, instance pools, SQL queries and alerts, and Databricks' own foundation-model serving endpoints (every workspace user can already query these, and Databricks exposes no per-customer ACL for them).

## Contact us

For questions about this integration, contact us at [support@oleria.com](mailto:support@oleria.com).


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