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

# Microsoft Dynamics 365 Finance and Operations (Client Credentials) - How do I link my account?

# Overview

To connect Microsoft Dynamics 365 Finance and Operations (Client Credentials) in Nango, you need to provide:

1. **Tenant ID** — The unique identifier for your organization that uses Microsoft services.
2. **Environment URL** — The domain of your Finance and Operations environment.
3. **Client ID** — The unique identifier that Azure assigns to your application when it's registered.
4. **Client Secret** — A unique string that enables the application to access Microsoft Dynamics 365 Finance and Operations without a signed-in user.

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

### Prerequisites

* You must have an active Microsoft Entra ID (Azure AD) account with access to a Finance and Operations environment, and permission to grant admin consent for application permissions.

### 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-migrated-bigcommerce-docs/QWtVAOVY-PHYzt9X/integrations/all/microsoft-business-central/tenant_id.png?fit=max&auto=format&n=QWtVAOVY-PHYzt9X&q=85&s=de8753181f5f5b35a8193927dcc0ac23" width="3024" height="984" data-path="integrations/all/microsoft-business-central/tenant_id.png" />

### Step 2: Finding your Environment URL

Sign in to your Finance and Operations environment, then copy its domain from the browser's address bar — everything after `https://` and before the first `/` (for example, `mycompany.operations.dynamics.com`).

### Step 3: 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-migrated-bigcommerce-docs/QWtVAOVY-PHYzt9X/integrations/all/microsoft-business-central/app_registration.png?fit=max&auto=format&n=QWtVAOVY-PHYzt9X&q=85&s=3619cc4d1feaa632c700d6340f8b2bf3" 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-migrated-bigcommerce-docs/QWtVAOVY-PHYzt9X/integrations/all/microsoft-business-central/new_registration.png?fit=max&auto=format&n=QWtVAOVY-PHYzt9X&q=85&s=a5f42cef3683d44ed47e353687cf9dd1" 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-migrated-bigcommerce-docs/CR_zovwKlY3JikWW/integrations/all/sharepoint-online-oauth2-cc/register_new_app.png?fit=max&auto=format&n=CR_zovwKlY3JikWW&q=85&s=d5401e5913e937edd6d816e59e2dcf9f" 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-migrated-bigcommerce-docs/CR_zovwKlY3JikWW/integrations/all/sharepoint-online-oauth2-cc/client_id.png?fit=max&auto=format&n=CR_zovwKlY3JikWW&q=85&s=a1eba1409da645cbf835417de3ce01f9" width="2894" height="1244" data-path="integrations/all/sharepoint-online-oauth2-cc/client_id.png" />

### Step 4: Generating your Client Secret

1. After registering a new app in the [step above](#step-3-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-migrated-bigcommerce-docs/CR_zovwKlY3JikWW/integrations/all/sharepoint-online-oauth2-cc/client_secret.png?fit=max&auto=format&n=CR_zovwKlY3JikWW&q=85&s=663a25018b0ff5fdd48294748a4b09df" 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-migrated-bigcommerce-docs/CR_zovwKlY3JikWW/integrations/all/sharepoint-online-oauth2-cc/gen_client_secret.png?fit=max&auto=format&n=CR_zovwKlY3JikWW&q=85&s=844b9ebe83f1a40bbc975a3ca95251f1" 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**, select **APIs my organization uses**, and search for **Microsoft Dynamics ERP** (app ID URI `Microsoft.ERP`).
5. From the displayed list, choose **Application permissions** (not Delegated permissions — there is no signed-in user in this flow), select the required permissions, click **Add permissions**, then select **Grant admin consent for \[tenant]**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/CTleSratmXwwgtbn/api-integrations/microsoft-dynamics-365-finance-and-operations-cc/permissions.png?fit=max&auto=format&n=CTleSratmXwwgtbn&q=85&s=e29956a1740607deed14be3fe1a21e81" width="1918" height="767" data-path="api-integrations/microsoft-dynamics-365-finance-and-operations-cc/permissions.png" />

### Step 5: Registering the application inside Finance and Operations

1. Sign in to your Finance and Operations environment as an administrator.
2. In the search bar, search for **Microsoft Entra ID applications** and open it.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/CTleSratmXwwgtbn/api-integrations/microsoft-dynamics-365-finance-and-operations-cc/dashboard.png?fit=max&auto=format&n=CTleSratmXwwgtbn&q=85&s=32a3b01b7de33776680f9e80727a1c05" width="1249" height="121" data-path="api-integrations/microsoft-dynamics-365-finance-and-operations-cc/dashboard.png" />

3. Select **New**, then enter the **Client ID** from the step above and set **User ID** to `Admin`.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/CTleSratmXwwgtbn/api-integrations/microsoft-dynamics-365-finance-and-operations-cc/setting_client.png?fit=max&auto=format&n=CTleSratmXwwgtbn&q=85&s=3ce39f354890d26b8161c2f1f8357c22" width="512" height="396" data-path="api-integrations/microsoft-dynamics-365-finance-and-operations-cc/setting_client.png" />

4. Save the record, then select it and enable it.

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

Once you have your credentials:

1. Open the form where you need to authenticate with Microsoft Dynamics 365 Finance and Operations (Client Credentials).
2. Enter the **Tenant ID**, **Environment URL**, **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-migrated-bigcommerce-docs/CTleSratmXwwgtbn/api-integrations/microsoft-dynamics-365-finance-and-operations-cc/form.png?fit=max&auto=format&n=CTleSratmXwwgtbn&q=85&s=7732d6e26cf9ae256781f506860c9371" style={{maxWidth: "450px" }} width="499" height="698" data-path="api-integrations/microsoft-dynamics-365-finance-and-operations-cc/form.png" />

You are now connected to Microsoft Dynamics 365 Finance and Operations (Client Credentials).
