Requirements
To follow the steps in this guide, you’ll need:- In Omni:
- Organization Admin permissions
- An existing Databricks connection. Refer to Connecting a Databricks database before continuing.
- In Databricks:
- A credential Omni can use to build and refresh the schema, with access to every schema and table you want to use in Omni. This is either a personal access token for a service principal or your own Databricks user account. Refer to Schema refresh credentials to choose.
Setup
Create a Databricks OAuth integration
Create an OAuth integration in Databricks using
https://callbacks.omniapp.co/callback/oauth as the Redirect URI, then retrieve the Client ID and Client Secret.Refer to Databricks’s OAuth documentation for instructions.For vanity-domain embeds: If you’re using OAuth with vanity-domain embeds, also add
https://<your-vanity-domain>/oauth/callback as a Redirect URI. Replace <your-vanity-domain> with your vanity domain (e.g., omni.myapp.com).Configure the connection in Omni
This guide assumes you have an existing Databricks connection in Omni. If you don’t, refer to Connecting a Databricks database for more information.
- In Omni, navigate to Settings > Connections and click on the Databricks connection you want to use.
- In the Authentication Type dropdown, select OAuth User Authentication.
- Enter the OAuth Client ID and OAuth Client Secret from the previous step into the respective fields.
- Choose how Omni refreshes the schema. To use a personal access token, keep or enter it in the Personal Access Token field. To use your own OAuth token, clear the field. Refer to Schema refresh credentials for guidance.
- Save the connection settings.
Optional: Use your OAuth token for schema refresh
Complete this step only if the connection has no personal access token.
- On the connection’s page, go to Schema > Schema refresh credentials.
- Click Use my token. If you haven’t authenticated with Databricks yet, follow the prompt in this section to authenticate.
Schema refresh credentials
Omni builds the model from the database schema, which provides the foundation for all user queries. On a Databricks OAuth connection, Omni refreshes the schema with one of the following credentials:- Personal access token - Omni uses the token when the connection has one. We recommend a token for a Databricks service principal, so the schema doesn’t depend on a single admin’s access.
- An admin’s OAuth token - If the connection has no personal access token, Omni uses the OAuth token of the admin set under Schema > Schema refresh credentials. Omni only sees the tables that admin can access.
Next steps
To ensure database permissions align with what users see in Omni, we recommend implementing:- Access grants to control which fields and tables are visible to each user in the model and field browser
- Content permissions to control which dashboards and documents users can access

