# Databricks Credentials

### Set up Databricks Credentials

This allows **Osmos AI Data Engineers** to access your Databricks instance safely while respecting the catalog and workspace access defined by your Databricks admin.

To enable Osmos AI Data Engineers to build, run, and validate Spark workflows in your Databricks environment, you’ll need to provide securely configured credentials. Follow these steps to connect your Databricks workspace to Osmos.

#### Before You Begin

* You must be an **Account Admin** in Databricks.
* Access to both the **Databricks Account Console**&#x20;
* Create a **Service Principal (M2M) Credential** in Databricks
* Access to **Osmos** is required.

### Step 1:  Log in to [**Osmos**](https://app.osmos.io/) **and select Credentials**

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

### Step 2: Set up your Databricks Credential for Osmos

#### Osmos currently supports Databricks' Service Principal (M2M) for Auth. &#x20;

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

#### 1. Enter the Osmos Credential Name

1. This is the credential name you will see in Osmos.  e.g., `osmos-service-agent`.
2. It is recommended to set this to the same as the Service Principal name in Databricks.  &#x20;

#### 2. Enter the Client Secret

1. The Client Secret is copied from the Databricks Account Console > Service Principals

#### 3. Enter the Client ID&#x20;

1. The Client ID is also copied from the Databricks Account Console > Service Principals.

#### 4. Select Save Credential

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

#### *Once configured, Osmos AI Data Engineers can securely access and run workflows in your Databricks environment while honoring your admin-defined access controls.*

{% hint style="info" %}
**Stay tuned**—interactive user OAuth (U2M) support is coming soon, but currently only M2M (Service Principal) is supported.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://agenticdocs.osmos.io/ai-data-agents-on-databricks/databricks-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
