> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integration/databricks-application-integration-setup.md).

# Databricks Application Integration Setup

### Requirements <a href="#getting-started" id="getting-started"></a>

* Account ID
* Client ID
* Client Secret
* Host Workspace URL

1. Login into [Databricks](https://login.databricks.com/).
2. Click on your workspace dropdown on top right and **Manage Account.**

<figure><img src="/files/WbPNdf68iVNyDhGVxzIB" alt=""><figcaption></figcaption></figure>

3. In your URL, copy the **Account ID**.

<figure><img src="/files/39aGnObpaQoMOYbOdca4" alt=""><figcaption></figcaption></figure>

4. Next Click on **User Management** > **Service Principals.** Click on **Add Service Principal** and type in a name.

<figure><img src="/files/QeOuFAn33oI1qIa8a28s" alt=""><figcaption></figcaption></figure>

5. Under Roles, give it **Account Admin.**

<figure><img src="/files/Yijoy3tb3XGwHadu6vGo" alt=""><figcaption></figcaption></figure>

6. Next go to **Credentials & Secrets.** Click **Generate Secret**.

<figure><img src="/files/7M3yheWC3jzqV3TdqRyg" alt=""><figcaption></figcaption></figure>

7. In the lifetime, enter a relevant duration (**365 days** recommended).

<figure><img src="/files/qplRdK2nhv87ktuLlepA" alt=""><figcaption></figcaption></figure>

8. Copy the **Client ID** and **Secret.**
9. Click on **Workspaces** and choose your desired workspac&#x65;**.** Copy your **Workspace URL**.

<figure><img src="/files/PTsXEcgYCZeaHjoKsAM1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uyUV3AIfMn8Rr5dkkNHh" alt=""><figcaption></figcaption></figure>

10. Copy the **Workspace URL.** Then click on **Open Workspace**.
11. On the top right, click your avatar and click **Settings.**

<figure><img src="/files/f3djEyM5nE6pUbiAgEw1" alt=""><figcaption></figcaption></figure>

12. Next, click on **Identity and Access.** Click on **Manage** next to Service Principals.

<figure><img src="/files/EMCx7Wv1AQDmKRUGU9uC" alt=""><figcaption></figcaption></figure>

13. Create a **Add Service Principal.** Type in your Service Principal name that we just created.

<figure><img src="/files/c03xhyfSMi3zc4E3WzYe" alt=""><figcaption></figcaption></figure>

14. Type a Service Principal Name and give it **Admin Access**. Click Add Service Principal

<figure><img src="/files/q5qc7HHYfkpcPnUOVrTw" alt=""><figcaption></figcaption></figure>

### Getting started <a href="#getting-started" id="getting-started"></a>

BalkanID recommends creating a separate service principal for the purposes of this integration, instead of using personal or employee named accounts.&#x20;

Databricks can be integrated to BalkanID directly from the UI via **Oauth**. To configure Databricks, you will need to be an administrator on the Databricks account.&#x20;

### Configure Databricks with your BalkanID tenant <a href="#steps-to-add-the-integration" id="steps-to-add-the-integration"></a>

1. Login to the BalkanID application and switch to the tenant you would like to add your integration to.
2. Head to *Integrations* > **Add Integration**, select **Databricks.**<br>

   <figure><img src="/files/R76MG37Tyz4fWPCkLixD" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/t1X56RGKeJRoAS4FUSGN" alt=""><figcaption></figcaption></figure>

3. Set up the *Primary Application owner (mandatory)* and the *Description*, if any. Set up Secondary Application Owner(s), if any. <br>
4. Paste the previously saved **Workspace URL**, **OAuth Client ID**, **OAuth Client Secret** and **Account ID.**

<figure><img src="/files/sUVDJNtdt0SAjHuwKraW" alt=""><figcaption></figcaption></figure>

5. Click on next to move onto *Optional Configuration.*
6. Fill **Optional configuration,** if required. &#x20;

   <figure><img src="/files/YjfdaBpJtLkRllP9v3s0" alt="" width="563"><figcaption></figcaption></figure>
7. Once you filled in the information, click **Save**. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the *Integrations* page. When data is available, the integration Status will read **Connected** and the integration Message will read **Data available**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integration/databricks-application-integration-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
