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

# Set up a Microsoft Dynamics 365 Business Central connector

> C1 provides identity governance for Microsoft Dynamics 365 Business Central. Integrate your Business Central environment with C1 for unified visibility and governance over user access.

C1 provides identity governance for Microsoft Dynamics 365 Business Central. Integrate your Business
Central environment with C1 for unified visibility and governance over who can access Business Central
and which permission sets they hold.

## Capabilities

| Resource        | Sync                                                          | Provision |
| --------------- | ------------------------------------------------------------- | --------- |
| Users           | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Permission sets | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Companies       | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Security groups | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |

The connector syncs Business Central users (with display name, sign-in name, contact email, and
enabled/disabled state), permission sets as roles, companies, and security groups. Both direct
user permission-set assignments and security-group memberships are synced as grants, with
permission sets assigned to a security group expanded to its members so you can run access
reviews over effective Business Central access.

## Gather Microsoft Dynamics 365 Business Central credentials

The connector authenticates to the Business Central Automation API using OAuth 2.0 with a Microsoft
Entra ID app registration (client credentials flow).

<Warning>
  You need permission to register an application in Microsoft Entra ID and to grant it admin consent for
  Business Central API permissions.
</Warning>

<Steps>
  <Step>
    In the [Microsoft Entra admin center](https://entra.microsoft.com), register a new application
    under **Identity** > **Applications** > **App registrations**.
  </Step>

  <Step>
    Under **API permissions**, add the **Dynamics 365 Business Central** application permission
    **API.ReadWrite.All**, then grant admin consent for your tenant.
  </Step>

  <Step>
    Under **Certificates & secrets**, create a new **client secret** and copy its value.
  </Step>

  <Step>
    In the Business Central admin center, grant the registered application access as a
    [Microsoft Entra application](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication)
    with the appropriate permission sets.
  </Step>

  <Step>
    Copy the following values to configure the connector:

    * The **Application (client) ID** and **Directory (tenant) ID** from the app registration overview.
    * The **client secret** value.
    * Your Business Central environment name (for example `Production`).
  </Step>
</Steps>

## Configure the Microsoft Dynamics 365 Business Central connector

<Tabs>
  <Tab title="Cloud-hosted">
    Follow these instructions to use a built-in, no-code connector hosted by C1.

    <Steps>
      <Step>
        In C1, navigate to **Integrations** > **Connectors** and click **Add connector**.
      </Step>

      <Step>
        Search for **Microsoft Dynamics 365 Business Central** and click **Add**.
      </Step>

      <Step>
        Choose how to set up the new Microsoft Dynamics 365 Business Central connector.
      </Step>

      <Step>
        Set the owner for this connector.
      </Step>

      <Step>
        Click **Next**.
      </Step>

      <Step>
        Find the **Settings** area of the page and click **Edit**.
      </Step>

      <Step>
        Enter the Microsoft Dynamics 365 Business Central credentials:

        * **Base URL**: The Automation API base URL for your environment, e.g.
          `https://api.businesscentral.dynamics.com/v2.0/Production/api/microsoft/automation/v2.0`.
        * **OAuth token URL**: `https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token`.
        * **Client ID**: The application (client) ID of your Entra ID app registration.
        * **Client secret**: The client secret value you created.
        * **OAuth scope** (optional): Defaults to `https://api.businesscentral.dynamics.com/.default`.
      </Step>

      <Step>
        Click **Save**.
      </Step>

      <Step>
        The connector's label changes to **Syncing**, followed by **Connected**. You can view the logs to ensure that information is syncing.
      </Step>
    </Steps>

    **Done.** Your Microsoft Dynamics 365 Business Central connector is now pulling access data into C1.
  </Tab>

  <Tab title="Self-hosted">
    Follow these instructions to run the Microsoft Dynamics 365 Business Central connector in your own
    environment.

    <Steps>
      <Step>
        Create secrets for the Business Central client secret.
      </Step>

      <Step>
        Configure the connector with the following settings:

        * **Base URL**: The Automation API base URL for your environment.
        * **OAuth token URL**: Your tenant's Entra ID token endpoint.
        * **Client ID**: The application (client) ID of your Entra ID app registration.
        * **Client secret**: The client secret value (stored as a secret).
        * **OAuth scope** (optional): Defaults to `https://api.businesscentral.dynamics.com/.default`.
      </Step>

      <Step>
        Deploy the connector using your standard self-hosted connector process.
      </Step>
    </Steps>

    **Done.** Your Microsoft Dynamics 365 Business Central connector is now pulling access data into C1.
  </Tab>
</Tabs>
