Welcome to the Alteryx Knowledge Base

How to create and use Service Principal in Databricks?
user

Created/Edited - 6/5/2026 by Clara Boo | Alteryx

How To

Please follow the steps outlined in this article to use a Databricks-managed service principal to connect to Databricks. For Azure Databricks, if you want to use an Entra ID (Azure) managed service principal, please refer to the following article instead:

 

Environment
  • Alteryx Designer/Server
    • Version >= 2025.1


Prerequisites
  • Databricks (AWS or Azure)
  • Databricks ODBC Driver (previously named as Simba Sparks ODBC Driver)
    • Version >= 2.7.7
  • Databricks Utility Catalog enabled

 

Procedure

IMPORTANT: Section A requires the administrator to perform the steps. 

 

A Create Service Principal in Databricks

  1. Log in to the Databricks workspace as a Workspace Admin.
  2. Click the Profile and select Settings.

 

  1. Click Identity and access on the left pane.
  2. Click the Manage button in the Service principals section.

 

 

 

  1. Click the Add service principal button.
  2. In the Add service principal window, click the Add new button.
  3. Select the Databricks managed option.
  4. Enter a name for the service principal and click the Add button. Note down the name.

 

 

  1. In the service principal details page, click the Secrets link.
  2. Click the Generate secret button.

 

 

  1. Enter the appropriate lifetime for the secret and click the Generate button.

 

 

  1.  Note down the client ID and secret.

 

 

  1. On the furthest left pane, click Catalog.
  2. In the Catalog page, click the catalog that you want to provision to the service principal.
  3. Click the Permissions link.

 

 

 

  1. Click the Grant button and add the appropriate permissions to the service principal created in step 8.

 

 

  1. Go to Compute and select the appropriate cluster to use in Alteryx,
  2.  Go to Permissions as shown below.

 

 

  1. Add the "Can Attach To" privilege to the service principal. 

 

 

 

B. Get the Databricks Information [FOR USER OR ADMINISTRATOR]

 

  1. Log in to Databricks.
  2. Go to Compute and select the appropriate cluster that will be used in Alteryx. For user who is unsure which cluster to use, please check with the Administrator, if necessary.
  3. Go to Configuration and scroll down to Advanced > JDBC/ODBC and take note of the server host and the HTTP Path.

 

  

 

C. Use Service Principal in Alteryx

 

  1. In Designer, add an Input Data tool to the workflow canvas.
  2. Configure the tool to use the Data Connection Manager (DCM), if optional.

 

 

 

  1. In the Data Connections window, click the Data Sources on the left pane.
  2. Click the Quick Connect link under the Databricks Utility Catalog section.

 

 

  1. Create a new connection, datasource and credentials. 
  2. For the datasource, enter the Host and HTTP Path from step 3 of section B.

 

 

  1. For the authentication method in the Credentials, please select Generic OAuth2.

 

 

  1. Enter the following field and values for the credentials:

 

FieldValue
Grant TypeClient Credentials
OAuth token URL

https://<databricks_instance>/oidc/v1/token

 

*Replace "<databricks_instance" with the server hostname from step 3 of Section B.

Client IDThe client ID from step 12 of section A.
Client SecretThe secret from step 12 of section A.
Client AuthenticationSend Client Credentials in Body

 

 

 

 

  1. Enter a name for the token credential, and enter the following for the Scope.

 

FieldValue
Scopeall-apis

 

 

 

 

  1. Click the Save button.
  2. Click the Connect button after creation.

 

NOTE: The DCM user interface may be different across Designer versions. The screenshots in this article are from Designer version 2025.2.

 

 

 

Was this article helpful?