If your Databricks workspace is in a private network and requires PrivateLink access, refer to the Databricks PrivateLink guide instead.
Requirements
To follow the steps in this guide, you’ll need Organization Admin permissions in Omni.Setup
Generate credentials
Omni can use either personal access token (PAT) or OAuth machine-to-machine (M2M) credentials to authenticate to Databricks.
- To use a - Follow the Databricks Access Token for a service principal guide. When you create the connection in Omni, you’ll select the Personal Access Token as the Authentication type.
- To use an - Follow the Databricks Authenticate as a service principal guide. When you create the connection in Omni, you’ll select the OAuth M2M Authentication as the Authentication type.
Grant permissions to the service principal
The Databricks service principal or user must have the following privileges on each catalog and schema Omni will access:Repeat the schema-level grants for each schema you want Omni to query. The
SELECT ON SCHEMA grant covers all current and future tables and views within that schema.Retrieve database connection details
Next, you’ll need to retrieve your database’s connection details from Databricks. Follow the steps in this Databricks guide, specifically the getting connection details for a Databricks SQL warehouse section.
Create the connection in Omni
- In Omni, click Settings > Connections.
- Click the Databricks option.
-
On the connection setup page, fill in the connection details:
requiredA user-friendly name for the connection, which will be used throughout Omni.requiredThe address of the database server.requiredThe HTTP path for the Databricks SQL warehouse.requiredSelect the authentication type you chose in step 1 and enter the credentials into their corresponding fields.requiredThe timezone used by the database.requiredThe timezone to use for Omni queries. If a timezone is specified, data will be converted from the Database Timezone to the selected timezone.When enabled, users can override the connection timezone with their own when querying.default:"900"Maximum time in seconds before a query times out.When enabled, Omni will sync metrics and metric views defined in your Databricks Unity Catalog into your Omni model.default:"enabled"When enabled, Omni will prefix generated view names with schema and catalog, e.g.
my_catalog_public__ordersinstead oforders. Defaults to enabled. See View name generation for more information.requiredSelect the minimum level of access users should have to models in the connection. - When finished, click Create connection.
What’s next?
Now that your database is set up, you can:- Use the Omni Agent’s quickstart skill to create your first topic from business questions
- Configure user permissions, schema refreshes, environments and timezone settings
- Learn how Omni generates the model associated with the connection

