Skip to content
Docs

Registering a Microsoft Entra ID application for Business Central

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Microsoft’s own documentation: Using service-to-service (S2S) authentication, Endpoints for the APIs, Develop connect apps, OAuth 2.0 client credentials flow, Quickstart: Register an application, Add credentials. Retrieved 2026-11-19.

App-only access lets a connection call the Business Central API as an application, with no signed-in user: what Microsoft calls service-to-service (S2S) authentication. It takes two registrations, one in Microsoft Entra ID and one inside Business Central, and the second decides what the application may touch.

  1. Sign in to the Microsoft Entra admin center for the tenant your Business Central runs in. Browse to Entra ID → App registrations → New registration, name the application, and choose Accounts in this organizational directory only.
  2. Select Register, then record the Application (client) ID and the Directory (tenant) ID from the Overview page. The tenant ID goes in the connection’s Tenant field, as a GUID or a domain name such as contoso.onmicrosoft.com.
  3. Under Certificates & secrets → Client secrets → New client secret, add a description and an expiration, select Add, and copy the secret’s Value at once: it is not shown again.
  4. Under API permissions → Add a permission, choose Dynamics 365 Business Central → Application permissions, and add API.ReadWrite.All (“Access to APIs and webservices”). Add Automation.ReadWrite.All too if you will use Business Central’s automation APIs. Then select Add permissions.
  5. Grant consent for these permissions. An administrator can select Grant admin consent on the same page; Microsoft also allows consent from inside Business Central instead (step 10), so this step is optional when you do that.
  6. In Business Central, search for Microsoft Entra applications and open the page.
  7. Select New. In the Client ID field, enter the Application (client) ID from step 2, and fill in a Description.
  8. Set the State to Enabled.
  9. Assign the permission sets the application needs. An application cannot be given SUPER. For automation work, Microsoft names D365 AUTOMATION and EXTEN. MGT. - ADMIN as covering the typical objects.
  10. If consent was not granted in step 5, select Grant Consent and follow the wizard.
  11. In the connection, fill in Environment with the environment’s name, such as production or a sandbox’s name. Every API address is https://api.businesscentral.dynamics.com/v2.0/<environment>/api/v2.0, and every resource call names a company: GET …/companies lists them, and …/companies(<id>)/customers reads one company’s customers.

Operational notes:

  • Business Central decides the reach. The Entra permission lets the application call the API at all; the permission sets on its card in Business Central decide which data it reads and writes.
  • One resource per token. The token request carries https://api.businesscentral.dynamics.com/.default and is good for Business Central only. A connection that also needs Microsoft Graph needs a second connection with the Graph app-only auth system, on the same app registration or another.
  • There is no refresh token. When the access token expires, a new one is minted from the same client ID and secret, so the secret is the credential to keep. When it expires, the connection stops until it is rotated: note the expiry you chose in step 3.
  • Limits apply to the application as to any user. Microsoft’s operational limits count an application user like any other: requests above the limits are answered with 429 Too Many Requests.

Open Connections under Credentials, choose Microsoft, and pick Microsoft Entra ID — app-only, for Business Central. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Microsoft in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.