Skip to main content

Business Central Admin Center Connection Setup

The Business Central Admin Center plugin is a single extension that uses the Business Central Admin Center API to communicate with the tenant's Business Central Service to manage tenant environments, updates, and apps.

The plugin requires a Microsoft Entra app to authenticate and authorization from the managed tenant admin for the app to have access to the Business Central Admin Center API.

Create a Microsoft Entra App​

The following steps describe how to create a Microsoft Entra app in the Azure portal and set up necessary permissions to access the Business Central Admin Center API.

  1. Sign in to the Azure portal.

  2. Register an application in your Microsoft Entra tenant.

    Follow the general guidelines at Register your application with your Microsoft Entra tenant.

    When you add an application to a Microsoft Entra tenant, you must specify the following information:

    SettingDescription
    NameSpecify a unique name for your application.
    Supported account typesSelect either Accounts in this organisational directory only (Microsoft only - Single tenant) if you are about to create an app within your customer's tenant or Accounts in any organisational directory (Any Microsoft Entra ID directory - Multitenant) if you are creating an app within your tenant so then to use to connect to your managed tenants.
    Redirect URIOptional. You can grant consent from the Azure portal if it is left empty.

    When completed, the new application's Overview will be displayed in the portal. Copy the Application (Client) ID value for use as Client ID in the Admin Hub Connection Setup section.

  3. Create a client secret for the registered application as follows:

    1. Select Certificates & secrets > New client secret.
    2. Add a description, select a duration, and select Add.
    3. Copy the secret's value for use as Client Secret in the Admin Hub Connection Setup section. This secret value is never displayed again after you leave this page.
info

For the latest guidelines about adding client secrets in Microsoft Entra ID, see Add credentials in the Azure documentation.

  1. Grant the registered application AdminCenter.ReadWrite.All permission to the Dynamics 365 Business Central API is as follows:

    1. Select API permissions > Add a permission > Microsoft APIs.
    2. Select Dynamics 365 Business Central.
    3. Select Application permissions, select AdminCenter.ReadWrite.All, then select Add permissions.
info

If you intend to use the same Microsoft Entra app with the Automation Plugin, you can also grant Automation.ReadWrite.All permissions. Follow a link for more information.

Admin Hub Connection Setup​

When you have created a Microsoft Entra app and setup the necessary permissions, you need to follow the steps below to add a new connection in the Admin Hub to connect to the Business Central Admin Center API:

  1. From a Tell Me action navigate to the Admin Hub Connections and create a new record with BC Admin Center type.
  2. Click Setup to open the connection setup page.
  3. Fill in the following fields and press Ok:
    • Client ID: The Application (Client) ID of the Microsoft Entra app.
    • Client Secret: The client secret value of the Microsoft Entra app.
    • Scope: The scope to connect to the Business Central Admin Center API is https://api.businesscentral.dynamics.com/.default.

After setting up the connection, you need to grant admin consent to the Microsoft Entra app to access the an API. There are options on how to perform this step:

  • For a multitenant app for a partner tenant with delegated admin access, you can add this app to the AdminAgents group, which will grant your partner-managed app those configured permissions for all your customers.
  • For single-tenant app: you can grant admin consent on each permission directly from an Microsoft Entra App API permissions screen by selecting Grant admin consent for <tenant name>. To perform this step, the user should have a minimum Cloud Application Administrator role in the managed tenant. Follow a link for more information.
  • For a multi-tenant app for a partner tenant without delegated admin access, we recommend using the Admin Consent Endpoint to grant admin consent for the Microsoft Entra app. Admin Consent Endpoint should be shared with the managed tenant admins to grant consent. When the consent is granted, the app will have access the Service API.
info

For Theta D365 customers we created a FAQ for Tenant Admins to assist out customers during an onboarding process. Be free to use it with your customers, but keep in mind that it's based on Theta D365 operation practices and may not be campatible with your service prinsiples.

Authorize Microsoft Entra App​

After the Microsoft Entra app has been granted admin consent, you need to authorize the app in the Business Central Admin Center. The following steps describe how to authorize the Microsoft Entra app in the Business Central Admin Center:

  1. Navigate to the customer's Business Central Admin Center using the following link https://businesscentral.dynamics.com/_TenantID_/admin where TenantID replaced customer's tenant identifier.
  2. Switch to the Microsoft Entra Apps tab and click on Authorize Microsoft Entra app.
  3. Enter the Application (Client) ID of the Microsoft Entra app and click Save. The new app shoudl appear in the list of authorized apps with an indication of the permissions it has been granted. If the autorisation is not granted, you need to follow the steps to grant admin consent again with current tenant.

Assign Permissions for App Management Operations​

Authorizing the Microsoft Entra app in the Business Central Admin Center (above) is enough for most operations — refreshing the installed app list, checking available updates, and scheduling an app update all work with authorization alone.

However, a smaller set of privileged operations additionally require the Microsoft Entra app to hold a permission set inside the target environment itself:

  • Installing an app
  • Uninstalling an app
  • Cancelling a scheduled app update

If this permission set is missing, these operations fail with an error similar to "S2S app doesn't have permission to perform environment app operations."

To grant it:

  1. Sign in to the target Business Central environment directly (the tenant web client for that specific environment — not the Admin Center portal).
  2. Search for and open the Microsoft Entra Applications page.
  3. Find (or add) the row matching the Application (Client) ID used in Admin Hub Connection Setup, and make sure State is Enabled.
  4. Assign the EXTEN. MGT. - ADMIN permission set (called D365 EXTENSION MGT in older Business Central versions) to that application record and save.
info

This step must be repeated for every environment where install, uninstall, or cancel-update operations will be used — it is not tenant-wide, and it is separate from authorizing the app in the Admin Center.

For Microsoft's reference on this requirement, see Required In-Product Permissions for Installing and Uninstalling Apps.