Databricks Permissions

A reference explaining every permission Revefi asks for on Databricks and what each one is used for, including the system tables Revefi reads.

Overview

Revefi connects to Databricks as a single service principal. The grants on that service principal are the complete boundary of what Revefi can do in your workspace. Most of what Revefi does is read Databricks system tables: the operational metadata Databricks keeps for billing, compute, jobs, queries, and lineage.

This page explains why each permission in the Databricks setup guide is requested.

📘

Every grant below goes to the service principal created in Step 1 of the setup guide. In the SQL commands, it's identified by its <application_id>.

Unity Catalog permissions

See Step 2 of the setup guide.

PermissionWhat Revefi uses it for
USE_CATALOG, USE_SCHEMA, SELECT on the system catalogLets Revefi query the Databricks system tables. This is the source for spend attribution, query performance analysis, job and cluster optimization, usage analytics, and lineage — see below for the tables involved. Only a metastore admin can grant access to the system catalog.
USE_CATALOG, USE_SCHEMA, SELECT on each catalog you want monitoredLets Revefi read the tables in that catalog to run data quality monitors on them. Grant this only on the catalogs you want Revefi to monitor.
USE_CATALOG, USE_SCHEMA, CREATE_SCHEMA, CREATE_MATERIALIZED_VIEW on the revefi catalogLets Revefi create views and materialized views over the system tables in its own catalog, to speed up its queries. See Revefi's own catalog.

What Revefi reads from the system catalog

system is the read-only catalog Databricks provides in every Unity Catalog metastore. Some of its schemas must be enabled by an account admin before they hold any data. See Enable system tables in the Databricks documentation.

TableWhat Revefi uses it for
system.billing.usageDBU consumption by workspace, warehouse, cluster, job, pipeline, and product. The basis of all Databricks spend reporting and cost attribution.
system.billing.list_pricesList price of each SKU, used to turn DBUs into dollar cost.
system.billing.account_pricesYour account's negotiated price of each SKU. Used instead of list_prices when your Revefi account is set up to use account prices.
system.compute.clustersCluster configuration and change history — node types, worker counts, autoscaling, and owners. Used for cluster cost attribution and job cluster recommendations.
system.compute.node_timelinePer-minute CPU and memory utilization of cluster nodes. Used to find idle or oversized clusters and to size job clusters.
system.compute.warehousesSQL warehouse configuration — size, type, cluster limits, and auto-stop. Used for warehouse recommendations and warehouse auto-management.
system.compute.warehouse_eventsSQL warehouse start, stop, and scaling events. Used to measure warehouse uptime and utilization.
system.query.historyQueries run on SQL warehouses and serverless compute, with their duration, rows, and bytes. Used for query performance analysis and per-query cost.
system.lakeflow.jobsJob definitions — names, owners, and tags.
system.lakeflow.job_run_timelineStart time, end time, and result of each job run. Used for job run monitors (duration and failure rate) and job cost.
system.lakeflow.job_task_run_timelineStart time, end time, and compute of each task in a job run. Used to attribute cost and utilization to individual tasks for job optimization.
system.lakeflow.pipelinesDLT pipeline definitions. Used for pipeline cost and DLT pipeline optimization.
system.access.table_lineageWhich tables each query or job reads and writes. Used for lineage and table usage analytics.
system.access.auditWorkspace audit events. Used to show configuration changes to clusters, jobs, and warehouses, attribute all-purpose cluster cost to users, and report Genie activity.
system.access.workspaces_latestWorkspace names and URLs, used to label spend and link back to your workspace.
system.information_schema.tablesTable names, types, owners, properties, and last-modified times. Used to discover tables and to run freshness monitors.
system.information_schema.columnsColumn names and data types of each table. Used for schema change monitoring.
📘

system.information_schema only lists tables in catalogs the service principal can access. Tables in catalogs you haven't granted Revefi access to stay hidden.

SQL warehouse permissions

See Step 3 of the setup guide.

PermissionWhat Revefi uses it for
CAN USE on Revefi's SQL warehouseLets Revefi run its queries on the system tables and your monitored catalogs. Revefi runs all of its queries on this one warehouse and doesn't run queries on your other warehouses.

Jobs, clusters, and pipelines permissions

Revefi needs to view your jobs, all-purpose clusters, and DLT pipelines to optimize them. These permissions are required: without them, job and pipeline optimization doesn't work. See Step 5 and Step 8 of the setup guide for a script that grants them on every job, cluster, and pipeline.

PermissionWhat Revefi uses it for
CAN_VIEW on jobsReads each job's settings, tasks, and cluster definitions through the Databricks API, so Revefi can analyze job runs and recommend cluster configurations.
CAN_VIEW on all-purpose clustersReads the configuration of all-purpose clusters that jobs run on, so Revefi can attribute their cost and recommend changes.
CAN_VIEW on DLT pipelinesReads pipeline settings and update history through the Databricks API, for pipeline cost and DLT pipeline optimization.
📘

CAN_VIEW only lets Revefi read these objects. To let Revefi run experiments on alternative cluster configurations for a job, grant CAN_MANAGE on that job instead — see Optional permissions.

Revefi's own catalog

Revefi is granted CREATE_SCHEMA and CREATE_MATERIALIZED_VIEW on a catalog named revefi, which you create during setup. Revefi creates one schema per system schema it reads (billing, compute, lakeflow, access, and query) and adds a view over each system table listed above. Tables that rarely change — list_prices, account_prices, and workspaces_latest — are created as materialized views so Revefi can read them faster.

These grants are scoped entirely to the revefi catalog. None of your own tables live in it.

Optional permissions

These are only needed for specific features.

PermissionNeeded forWhat Revefi uses it for
CAN_MANAGE on jobs and all-purpose clustersJob optimization experimentsLets Revefi run experiments on alternative cluster configurations. Replaces CAN_VIEW on those jobs and clusters.
READ_VOLUME on the revefi.default.logs volumeJob optimizationReads the cluster logs your jobs write to the volume, for detailed Spark metrics.
Warehouse management permissionsWarehouse auto-managementResizes your SQL warehouses to apply Revefi's recommendations.

Related pages

Questions about a specific grant? Reach out to [email protected].


Did this page help you?