Skip to main content

Requirements

To follow the steps in this guide, you’ll need:
  • In Omni:
  • 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.
Before continuing, review the OAuth limitations.

Setup

1

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).
2

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.
  1. In Omni, navigate to Settings > Connections and click on the Databricks connection you want to use.
  2. In the Authentication Type dropdown, select OAuth User Authentication.
  3. Enter the OAuth Client ID and OAuth Client Secret from the previous step into the respective fields.
  4. 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.
  5. Save the connection settings.
3

Optional: Use your OAuth token for schema refresh

Complete this step only if the connection has no personal access token.
  1. On the connection’s page, go to Schema > Schema refresh credentials.
  2. Click Use my token. If you haven’t authenticated with Databricks yet, follow the prompt in this section to authenticate.
Omni now uses your Databricks OAuth token to refresh the schema.
4

Verify the user experience

Each Omni user is prompted to authenticate with Databricks the first time they run a query in a workbook or dashboard. This prompt reappears when their OAuth token expires.Once authenticated, Omni uses the user’s database permissions for all queries that user runs.

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.
If the connection has neither, schema refreshes fail.

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