> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ImmyBot - How do I link my account?

# Overview

To authenticate with ImmyBot, you need:

1. **Microsoft Entra Tenant ID** - The Azure tenant ID that owns your ImmyBot app registration
2. **ImmyBot Instance Subdomain** - The first segment of your ImmyBot instance URL
3. **Client ID** - The Application client ID from your Microsoft Entra app registration
4. **Client Secret** - A client secret value from your Microsoft Entra app registration

### Prerequisites:

* Access to your ImmyBot tenant as an administrator.
* Permission to create or manage Microsoft Entra app registrations.
* Permission to add a Person and User in ImmyBot.

### Instructions:

#### Step 1: Create or find your Microsoft Entra app registration

1. In Microsoft Entra, go to **App registrations**.
2. Click **New registration**, or open an existing app registration for ImmyBot API access.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/01-azure-app-registrations-new-registration.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=93996d1d97adf21d14e062abfd50f5f3" width="1354" height="366" data-path="api-integrations/immybot/01-azure-app-registrations-new-registration.png" />

3. From the app registration overview, copy the **Directory (tenant) ID** and **Application (client) ID**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/02-azure-app-registration-overview.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=c4617602cca6f63604b68bd168e9e0ec" width="2514" height="696" data-path="api-integrations/immybot/02-azure-app-registration-overview.png" />

#### Step 2: Create a client secret

1. In the app registration, open **Certificates & secrets**.
2. Create a new client secret.
3. Copy the secret **Value**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/03-azure-client-secret.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=55aff193332863417cf25dc34cb431dd" width="1720" height="360" data-path="api-integrations/immybot/03-azure-client-secret.png" />

<Note>
  Store the Client Secret securely. Azure only shows the client secret value once.
</Note>

#### Step 3: Copy the Enterprise Application Object ID

1. From the app registration overview, click the **Managed application in local directory** link.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/04-azure-managed-application-link.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=5ffc209aa8a0f12d80530416ecfe70c5" width="596" height="248" data-path="api-integrations/immybot/04-azure-managed-application-link.png" />

2. On the Enterprise Application properties page, copy the **Object ID**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/05-azure-enterprise-application-object-id.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=3cf451ceba76e91b8229f2a82f31405c" width="752" height="352" data-path="api-integrations/immybot/05-azure-enterprise-application-object-id.png" />

<Warning>
  Use the Enterprise Application Object ID for the ImmyBot Azure Object ID field, not the App Registration Object ID.
</Warning>

#### Step 4: Add the Azure service principal as a Person in ImmyBot

1. In ImmyBot, expand **Show more** in the sidebar and open **People**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/06-immybot-show-more-people.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=6ab9365e9451e43d193daf07742480f8" width="444" height="1736" data-path="api-integrations/immybot/06-immybot-show-more-people.png" />

2. Click **New**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/07-immybot-people-new.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=df8dc9047ca69368a530ece197eac3bb" width="1198" height="612" data-path="api-integrations/immybot/07-immybot-people-new.png" />

3. Create a Person for the integration. Select the owner tenant, enter a recognizable name and email, and paste the Enterprise Application Object ID into **Azure Object ID**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/08-immybot-new-person-form.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=0ba7c57c58ab4e001dcea357b8fe179f" width="1408" height="716" data-path="api-integrations/immybot/08-immybot-new-person-form.png" />

#### Step 5: Create a User and assign an API access role in ImmyBot

1. In ImmyBot, expand **Show more** and open **Users & Roles**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/09-immybot-show-more-users-roles.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=8d56935e844dac644c27652756c6623e" width="438" height="1738" data-path="api-integrations/immybot/09-immybot-show-more-users-roles.png" />

2. Click **Add New User**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/10-immybot-users-roles-add-new-user.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=e7efbc9b9f4aa70d0dd6709fc7e30f55" width="1398" height="448" data-path="api-integrations/immybot/10-immybot-users-roles-add-new-user.png" />

3. Select the Person you created, then click **Create Users**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/11-immybot-create-users-from-existing-people.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=ba1d2c552b879258f383006f408be001" width="422" height="1726" data-path="api-integrations/immybot/11-immybot-create-users-from-existing-people.png" />

4. Assign an administrator role that can access the ImmyBot API, such as **System Administrator (Legacy)** or the applicable administrator role for your tenant.
5. Set the assignment to **Allow**, then click **Assign**.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/12-immybot-direct-role-assignment.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=db53b04a142219d4fd57895176731098" width="1400" height="1236" data-path="api-integrations/immybot/12-immybot-direct-role-assignment.png" />

#### Step 6: Find your ImmyBot instance subdomain

1. Open your ImmyBot instance URL.
2. Copy the first segment before `.immy.bot`.

For example, if your ImmyBot URL is `https://acme.immy.bot`, enter `acme`.

#### Step 7: Enter credentials in the Connect UI

Once you have your ImmyBot credentials:

1. Open the form where you need to authenticate with ImmyBot.
2. Enter your **Microsoft Entra Tenant ID**, **ImmyBot Instance Subdomain**, **Client ID**, and **Client Secret** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/Us7at5GZnhYpK7Ij/api-integrations/immybot/13-nango-immybot-connection-form.png?fit=max&auto=format&n=Us7at5GZnhYpK7Ij&q=85&s=f7f44ab43666d2d7b18e5202df4899f0" style={{maxWidth: "450px" }} width="498" height="699" data-path="api-integrations/immybot/13-nango-immybot-connection-form.png" />

You are now connected to ImmyBot.
