> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-integration-config-credentials-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft (Client Credentials) - How do I link my account?

## Overview

To connect Microsoft (Client Credentials) in Nango, you need to provide:

1. **Tenant ID** — The unique identifier for your organization that uses Microsoft services.
2. **Client ID** — The unique identifier that Azure assigns to your application when it's registered.
3. **Client Secret** — A unique string that enables the client application to access Microsoft.

This guide will walk you through generating and finding these credentials within Azure.

### Prerequisites

* You must have an active Azure account with the appropriate Microsoft product subscription.

### Step 1: Finding your Tenant ID

1. Your Tenant ID can be found in the **Tenant ID** field on the [Overview page](https://aad.portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview) within your Azure account.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/microsoft-business-central/tenant_id.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=1dedd2d688ec2ea8112bfa5a242bd5af" width="3024" height="984" data-path="integrations/all/microsoft-business-central/tenant_id.png" />

### Step 2: Generating your Client ID

1. Navigate to the [Azure portal home page](https://portal.azure.com/#home) and sign in using the credentials of an administrator.
2. Select **App registrations**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/microsoft-business-central/app_registration.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=89698e8243843e00e2ddc32bf1002b47" width="3024" height="1372" data-path="integrations/all/microsoft-business-central/app_registration.png" />

3. Select **New registration**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/microsoft-business-central/new_registration.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=a21e6433178d2c0c28991941ce44becf" width="3024" height="1372" data-path="integrations/all/microsoft-business-central/new_registration.png" />

4. In the **Register an application** section, enter a meaningful application name to display to users. Select who can use this application based on your environment and click **Register**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/TSD4x0bu0JKRP5Pn/integrations/all/sharepoint-online-oauth2-cc/register_new_app.png?fit=max&auto=format&n=TSD4x0bu0JKRP5Pn&q=85&s=3f409ce48ea4f16c0ec2486b92de6b40" width="2894" height="1244" data-path="integrations/all/sharepoint-online-oauth2-cc/register_new_app.png" />

5. Once you have registered your application, your **Client ID** will be displayed in the **Application (client) ID** field within the **Essentials**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/TSD4x0bu0JKRP5Pn/integrations/all/sharepoint-online-oauth2-cc/client_id.png?fit=max&auto=format&n=TSD4x0bu0JKRP5Pn&q=85&s=fad39faf5dfb61cc79523b834b8e1774" width="2894" height="1244" data-path="integrations/all/sharepoint-online-oauth2-cc/client_id.png" />

### Step 3: Generating your Client Secret

1. After registering a new app in the [step above](#step-2-generating-your-client-id), navigate to **Certificates & secrets** under **Manage**, and click **New client secret**.
2. A pop-up modal will appear, prompting you to enter your secret's **Description** and **Expires** values. Fill these then click on **Add**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/TSD4x0bu0JKRP5Pn/integrations/all/sharepoint-online-oauth2-cc/client_secret.png?fit=max&auto=format&n=TSD4x0bu0JKRP5Pn&q=85&s=ea3ad5d3d86ca712ededcb1c7cc2f6f1" width="3024" height="1390" data-path="integrations/all/sharepoint-online-oauth2-cc/client_secret.png" />

3. Once completed, your **Client Secret** will be generated. This value can be found in the **Value** field within the **Client Secrets** table.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/TSD4x0bu0JKRP5Pn/integrations/all/sharepoint-online-oauth2-cc/gen_client_secret.png?fit=max&auto=format&n=TSD4x0bu0JKRP5Pn&q=85&s=b455b7ea87977920127cf5dd34bcd47a" width="3024" height="1390" data-path="integrations/all/sharepoint-online-oauth2-cc/gen_client_secret.png" />

4. After generating the **Client Secret**, you must grant the registered application the necessary permissions. Navigate to **API permissions**, select **Add a permission**, and choose **Microsoft Graph**.
5. From the displayed list, choose **Application permissions**, select the required permissions, and click **Add permissions**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/5Bzz8u-Zenu6owO9/api-integrations/microsoft-oauth2-cc/permissions.png?fit=max&auto=format&n=5Bzz8u-Zenu6owO9&q=85&s=ed8ddd33cfb221d72fcf8bb891062de7" width="2902" height="1582" data-path="api-integrations/microsoft-oauth2-cc/permissions.png" />

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

Once you have your credentials:

1. Open the form where you need to authenticate with Microsoft (Client Credentials).
2. Enter the **Tenant ID**, **Client ID**, and **Client Secret** in their designated fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/5Bzz8u-Zenu6owO9/api-integrations/microsoft-oauth2-cc/form.png?fit=max&auto=format&n=5Bzz8u-Zenu6owO9&q=85&s=c683adc991edf0c9a965d6e9fe1bf9f0" style={{maxWidth: "450px" }} width="497" height="699" data-path="api-integrations/microsoft-oauth2-cc/form.png" />

You are now connected to Microsoft (Client Credentials).
