# Databricks Agent authentication

> Connect UiPath to Databricks Agent using OAuth 2.0 Client Credentials or a Personal Access Token.

## Prerequisites

To create a connection to the Databricks Agent connector, you must provide the following credentials:

* For **OAuth 2.0 Client credentials**:
  + Workspace ID
  + Client ID
  + Client Secret
  + Scope
* For **Personal Access Token (PAT)**:
  + Workspace ID
  + Personal Access Token

We recommend using OAuth2.0. Use PAT only for development purposes in non-production environments.

## Retrieving your credentials

You can extract the workspace ID from the dashboard URL. For example, in the URL `https://dbc-b9458bba-0b7d.cloud.databricks.com/browse/folders/workspace?o=1634964661600153` the workspace ID is `dbc-b9458bba-0b7d`.

The Personal Access token (PAT) can be generated in Databricks.

## Add the Databricks Agent connection

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. From the **Authentication Type** dropdown, select either **OAuth 2.0 Client credentials** or **Personal Access Token (PAT)**. By default, OAuth 2.0 Client credentials is selected.
6. Enter the required credentials.

   For any secret-type field, you can select the menu next to the field and choose **Use credential asset** to reference an Orchestrator credential asset linked to an external vault instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).
7. Select **Connect**.
8. Your connection has been added.
