# Databricks Databricks Permissions

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/databricks/permissions/

> **Info: Permissions in your Databricks**
>
> The permissions on this page are granted in your own Databricks, to the account Qualytics connects with, by whoever administers Databricks at your company. They let Qualytics connect the datastore and read your data, and write to it when it is an enrichment datastore. They are not Qualytics roles or team permissions. To know which Qualytics user role (**Admin**, **Manager**, or **Member**) and team permission you need to connect the datastore in Qualytics, see [Source Datastore Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/).

Qualytics connects to Databricks through JDBC, using either a **Personal Access Token** or **OAuth M2M** (see [Authentication](https://userguide.qualytics.io/source-datastore/datastore/jdbc/databricks/authentication/)). It reads Hive metastore or Unity Catalog metadata to discover catalogs, schemas, tables, columns and partitions. The user or service principal behind the connection needs the grants below.

## Minimum Databricks Permissions (Source Datastore)

| Permission | Purpose |
| --- | --- |
| `USAGE ON CATALOG <catalog_name>` | Access the catalog |
| `USAGE ON SCHEMA <catalog_name>.<schema_name>` | Access objects within the schema |
| `SELECT ON SCHEMA <catalog_name>.<schema_name>` | Read data from all tables and views for profiling and scanning |
| `CAN USE` on the SQL warehouse or cluster | Run queries on the compute resource |

## Additional Permissions for an Enrichment Datastore

When Databricks is used as an enrichment datastore, Qualytics also needs these grants to write its outputs, which are named from the linked source's prefix (for example `_tpch_failed_checks`):

| Permission | Purpose |
| --- | --- |
| `CREATE TABLE ON SCHEMA <catalog_name>.<schema_name>` | Create enrichment outputs |
| `MODIFY ON SCHEMA <catalog_name>.<schema_name>` | Write, update, and delete data in enrichment tables |

## Example: Source Datastore Permissions (Read-Only)

Replace `<catalog_name>`, `<schema_name>`, and `<user_or_group>` with your actual values.

```sql
-- Grant catalog and schema access
GRANT USAGE ON CATALOG <catalog_name> TO <user_or_group>;
GRANT USAGE ON SCHEMA <catalog_name>.<schema_name> TO <user_or_group>;

-- Grant read access to all tables in the schema
GRANT SELECT ON SCHEMA <catalog_name>.<schema_name> TO <user_or_group>;
```

## Example: Enrichment Datastore Permissions (Read-Write)

```sql
-- Grant catalog and schema access
GRANT USAGE ON CATALOG <catalog_name> TO <user_or_group>;
GRANT USAGE ON SCHEMA <catalog_name>.<schema_name> TO <user_or_group>;

-- Grant read-write access and table creation
GRANT SELECT, MODIFY ON SCHEMA <catalog_name>.<schema_name> TO <user_or_group>;
GRANT CREATE TABLE ON SCHEMA <catalog_name>.<schema_name> TO <user_or_group>;
```

> **Note**
>
> The Databricks user or service principal must also have `CAN USE` permission on the **compute resource** (SQL warehouse or all-purpose cluster) used for the connection. Without compute access, queries cannot run, whatever the data permissions.

*Last updated: November 16, 2026.*
