For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Databricks Service Principal and Privileges

Create the service principal, SQL warehouse and grants that SeeMore Data needs to read your Databricks account's system tables.

This page walks you through creating the Databricks service principal and granting the privileges that SeeMore Data needs to read your account's system tables. For what each permission allows and what SeeMore Data reads with it, see Permissions and Data Handling — it's the page to share with your security reviewer.

What you'll set up on this page:

  1. A service principal with an OAuth secret, added to the workspaces SeeMore Data reads.

  2. A dedicated seemore_warehouse SQL warehouse in each region SeeMore Data should fetch.

  3. System schemas enabled on the Unity Catalog metastore of each of those regions.

  4. Privileges on the system catalog, metadata-only access to the catalogs you want inventoried, plus warehouse permissions.

  5. Query text access, through Databricks' databricks_pii_access group.

  6. Network access, if your workspaces restrict it with an IP access list.

At the end you'll have three values to enter in SeeMore Data — the workspace URL, the client ID and the secret — and a SQL warehouse in each region, which you choose by name during setup.

Before you start

  • You need three Databricks roles. One person can hold all of them, and each step below names the one it needs:

    • Account admin — creates the service principal and its secret (step 1), and adds it to databricks_pii_access so SeeMore Data can read query text.

    • Workspace admin of each workspace you set up — adds the service principal (step 2), creates the warehouse (step 3), sets warehouse and endpoint permissions (step 6) and the IP access list (step 7).

    • Metastore admin of each region — enables the system schemas (step 4) and runs the grants (step 5).

  • Your workspaces must be attached to a Unity Catalog metastore. To check, run SELECT current_metastore(); in a SQL editor — a workspace with no metastore returns an error.

  • An account in several regions has one metastore per region, so steps 3 to 6 are done once for each region you want fetched. A region you don't set up still counts toward your total spend; only its query history, compute, jobs, lineage and AI detail are missing.

You enter one workspace in SeeMore Data. It discovers every other workspace in the account, and the region each one is in. A workspace added later is picked up on the next sync: its cost right away, and its query history and compute if it's in a region SeeMore Data fetches.

1. Create the service principal

In the account console, go to User management → Service principals → Add service principal. Then select the service principal, open its Credentials & secrets tab and generate an OAuth secret. A workspace admin can also generate it, under the workspace's Settings → Identity and access → Service principals → Manage, on the service principal's Secrets tab. Under Scopes, search for and select these seven: sql, query-history, access-management, scim, model-serving, vector-search and unity-catalog. They are the only Databricks APIs SeeMore Data calls, and a token issued from the secret can't reach any other. OAuth scopes lists what each one is for. All APIs also works, but Databricks doesn't recommend it.

Keep two values:

  • Client ID — also shown as the application ID. You'll use it in the grants below and in the integration form.

  • Secret — used only in the integration form.

To do this through the API, see Databricks' OAuth guide for service principals. The secrets call takes a lifetime parameter, a duration in seconds such as 63072000s (two years), and a scopes list with the seven names above.

2. Add the service principal to your workspaces

A service principal created at account level isn't automatically a member of any workspace. In each workspace below, go to Settings → Identity and access → Service principals and add it:

  • The workspace you enter in SeeMore Data. The connection test signs in there.

  • At least one workspace in each other region SeeMore Data should fetch. Signing in there is how SeeMore Data learns the region and lists the SQL warehouses you can choose from, so add it to the workspace that holds the region's seemore_warehouse.

  • Every workspace whose query history and live queries you want imported. Hourly query history and Real Time Monitoring sign in to each workspace directly.

Give it the Workspace access and Databricks SQL access entitlements, if your workspace doesn't already grant them to every member. It doesn't need Allow cluster creation or Allow instance pool creation, so don't grant those.

Usage from a workspace the service principal isn't a member of is still counted, because billing is account-scoped.

3. Create the Seemore SQL warehouse

SeeMore Data reads through a SQL warehouse, and a region's system tables can only be read through a warehouse in that region. In the workspace you enter in SeeMore Data, go to SQL Warehouses → Create SQL warehouse and name it seemore_warehouse. Create another in a workspace of each other region you want fetched. A dedicated warehouse keeps SeeMore Data's reads off your teams' warehouses, and makes its own cost easy to see.

Setting
Suggested
Why

Cluster size

2X-Small

The queries read system tables only

Type

Serverless where available

It starts in seconds, so auto-stop saves money without a cold-start wait. Pro and Classic work too

Auto stop

On, at the lowest value offered

It only needs to run while SeeMore Data is reading

Scaling

Min 1, max 1

Reads are sequential

The warehouse runs in your account, so its DBUs appear on your bill — a small, intermittent cost. If your policy doesn't allow a new warehouse, an existing one works: give the service principal Can use on it instead. You don't need its ID; during setup, you choose it by name.

4. Enable the system schemas

SeeMore Data reads nine system schemas: access, billing, compute, lakeflow, query, tags, serving, ai_gateway and mlflow. They're enabled per metastore, so repeat this step in a workspace of each region SeeMore Data should fetch. An account admin or metastore admin must make these calls; anyone else gets 403.

First, get your metastore ID:

It returns <cloud>:<region>:<metastore_id>, for example aws:us-west-2:1a2b3c4d-0000-1111-2222-333344445555. Use the part after the last colon. Then list the state of each schema, and enable each one that's AVAILABLE:

State
What to do

AVAILABLE

Enable it with the PUT

ENABLE_COMPLETED or MANAGED

Nothing — it's already readable

UNAVAILABLE

Not offered to your account yet. Contact Databricks, unless it's one of the optional schemas below

If the PUT returns "<schema> system schema can only be enabled by Databricks", Databricks manages that schema and it's already available.

tags, serving, ai_gateway and mlflow are optional: Databricks offers them per region, and tags is still in preview. Without them, only governed tags, per-request AI detail, the external-provider spend estimate and MLflow run activity are missing. What Databricks bills you for AI still comes from system.billing.

5. Grant privileges

Run the following as a metastore admin, in a SQL editor attached to seemore_warehouse. Replace <service_principal_client_id> with the client ID from step 1.

Grants are made per metastore, and a grant in one region doesn't reach another. Run the grants in a workspace of each region SeeMore Data should fetch. When a check fails during setup, its card links here and says which region to run them in.

Grant at schema level, not per table. Databricks adds tables to the system schemas over time, and a per-table list goes stale without any error. If your policy requires table-level grants, Tables read lists every table SeeMore Data reads.

Browse on your own catalogs — for the asset catalog

SeeMore Data's asset catalog — the inventory of your catalogs, schemas and tables that lineage and unused-table insights are built on — reads system.information_schema. It returns only the objects the reader may see, so a service principal with no access to a catalog gets no rows for it and no error.

BROWSE is the privilege to grant. It works at catalog level with no USE CATALOG or USE SCHEMA beside it, and it is metadata only: a principal holding BROWSE and nothing else can't run SELECT on your data. USE CATALOG is not a substitute; it shows the catalog but none of its tables.

BROWSE exposes more than names, including column names and types and the SQL of your views. SeeMore Data reads names, owners, comments, timestamps, tags and view SQL — not the columns. See what BROWSE exposes before you grant it.

Unity Catalog has no wildcard for this, so list your catalogs and repeat the grant once per catalog:

A catalog belongs to one metastore, so repeat this in a workspace of each region SeeMore Data fetches. Skip any catalog you'd rather SeeMore Data didn't inventory. Nothing else depends on this grant — costing, query history and warehouse automation all work without it.

Query text access

Databricks returns query text as <REDACTED> to everyone outside the account-level group databricks_pii_access. SeeMore Data needs the text for several features: similar-query grouping, query tagging and lineage, and the SQL it shows for each query, including live queries in Real Time Monitoring. Without it, cost, timing and volume still arrive, but every query has the same placeholder text.

An account admin adds the service principal to that group in the account console under User management → Groups. The group doesn't exist by default. Create it there with exactly that name — it's case-sensitive — and not in workspace admin settings, where the creator gets Manage on the group.

6. Grant warehouse and serving endpoint permissions

Warehouse and endpoint permissions aren't Unity Catalog securables, so there's no GRANT statement for them. Set them on each object's Permissions tab, with the Databricks CLI as shown below, or through PATCH /api/2.0/permissions/warehouses/{warehouse_id} and PATCH /api/2.0/permissions/serving-endpoints/{serving_endpoint_id}.

Can use on each region's seemore_warehouse — required

Give the service principal Can use on the seemore_warehouse of each region SeeMore Data should fetch. This is how SeeMore Data runs its reads. During setup, the SQL warehouse list shows only the warehouses the service principal has a permission on, and a check through one without Can use fails with "Give the service principal CAN USE on this SQL warehouse, or choose another one."

Can monitor on the warehouses you want to watch live — for Real Time Monitoring

Give the service principal Can monitor on each SQL warehouse you want in Real Time Monitoring. The live view reads each warehouse directly and sees only the ones the service principal is permitted on. Without this grant a warehouse is missing from the live view, with no error; its cost and query history still arrive.

Can use is not enough here: it shows the warehouse but not other users' queries, so a busy warehouse appears with zero running queries. Databricks also lets Can monitor start the warehouse and run queries on it. SeeMore Data does neither.

update patches the existing list, so the warehouse's owner and admin entries survive. A warehouse created later needs its own grant. To avoid revisiting this, give a group Can monitor on new warehouses through your warehouse policy, and add the service principal to the group once.

Can manage on the warehouses you want SeeMore Data to change — optional

Skip this unless you want to change SQL warehouse settings from SeeMore Data. Give the service principal Can manage only on those warehouses.

A user with the Editor role or higher can change a warehouse's size, minimum and maximum clusters, and auto stop on its Configurations tab. Auto stop can be as low as 1 minute on Serverless and 10 minutes on Pro and Classic. You can't turn auto stop off from SeeMore Data.

With Can manage, SeeMore Data changes a warehouse only when an Editor saves a change. It doesn't start, stop or delete warehouses, or change their permissions. A new size can restart a running warehouse, so SeeMore Data asks you to confirm before it applies one.

In Databricks, Can manage also allows starting, stopping, editing and deleting the warehouse, and changing its permissions. Grant it only where you need it. It includes Can monitor, so a warehouse you grant it on needs no Can monitor grant.

Without the grant, the Edit button on the warehouse's Configurations tab is disabled, with a link to the setup guide. To add the grant, open SQL Warehouses → the warehouse → Permissions in Databricks, add the service principal and give it Can manage. Or use the CLI:

Can view on your model serving endpoints — for AI Services

Give the service principal Can view on each model serving endpoint you run, so AI Services can show its served model, compute size, scale-to-zero setting and state. Can view can't query or change the endpoint. Without it, the endpoint's cost and requests still appear, but its configuration shows as Hidden — needs CAN_VIEW.

The command takes the endpoint's ID: databricks serving-endpoints get <endpoint_name> prints it. An endpoint created later needs its own grant. The pay-per-token databricks-* Foundation Model endpoints need none.

7. Allow SeeMore Data's IP addresses

Skip this step unless your workspaces restrict inbound access. If they do, SeeMore Data's connection is refused until its addresses are allowed. SeeMore Data connects from two fixed egress addresses, the same for every SeeMore Data connection:

Allow them in each control you use. Databricks enforces both together, so a request must pass each:

  • Context-based ingress, configured for the account: allow the two addresses in the policy that covers your workspaces.

  • Workspace IP access lists, which need the Enterprise tier: add the addresses to each workspace that has a list, with the Databricks CLI or the IP Access Lists API on that workspace's own URL. The account-level IP access list API controls the account console only, not your workspaces.

8. Verify the setup

The Permission checks step of the setup runs these same checks as the service principal. Running them here first is a quick way to catch a missing grant, with Databricks' own error message.

Confirm the grants landed. Run this in each region you set up:

Then run the five required checks. The first three are account-wide, so setup checks them once, through the connected region's SQL warehouse. The last two are checked in every region SeeMore Data fetches:

Permission checks also reads 23 optional tables, and reports any it can't read as Ready with optional gaps without blocking setup. They're listed by feature in Tables read.

If you granted BROWSE, check the asset catalog in each region. This is the query SeeMore Data's asset fetch runs, so what it returns is what will be imported:

Every catalog you granted BROWSE on should be listed. The default workspace catalog is usually visible to all users without a grant, so seeing it listed doesn't prove your grants landed. An empty result doesn't block setup; SeeMore Data then imports no assets.

Next step

Integration with Seemore

Last updated