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

# Prepare Microsoft Dynamics 365 Finance access

> Prepare your Finance environment, application authorization, and legal-entity scope for a Control connection.

Prepare access to the posted general ledger, main accounts, and financial dimensions in Dynamics 365 Finance,
also called Finance and Operations or F\&O. Your Microsoft Entra administrator and Finance administrator or
implementation partner must take part in setup.

> [!NOTE]
>
> This guide covers assisted pilot onboarding. Availability is enabled separately for your workspace. The actual
> posted-ledger entities and financial mappings must be verified in your environment before imports can run. Contact
> Control before making access changes. A Business Central authorization does not authorize Finance.

## What to provide

| Detail | Who provides it |
| - | - |
| Microsoft Entra directory ID | Your Microsoft administrator supplies the directory's **Tenant ID**. |
| Finance environment URL | Your Finance administrator supplies the exact HTTPS address, deployed version, and whether the environment is a sandbox or production environment. |
| Legal entities and ledger scope | Your finance team identifies the allowed legal-entity codes, ledgers, posting layers, and accounting currencies. |
| Main accounts and financial dimensions | Your Finance administrator confirms which accounts and dimension types and values the connection must read. |
| Integration service account | Your Finance administrator identifies a dedicated service account with read privileges limited to the agreed data and legal entities. |
| Posted-ledger data availability | Your Finance administrator or partner confirms the public data entities or agreed read-only custom entity that expose posted entries, complete keys, accounting dates, account references, accounting-currency amounts, and dimensions. |
| Pilot accounting period and comparison report | Your finance team selects a complete, closed period and supplies the matching trial balance or ledger report through your agreed secure channel, including legal-entity, ledger, posting-layer, and currency filters. |

Finance cloud in Microsoft's commercial cloud is the initial scope. Tell Control if you use on-premises deployments,
a national cloud, or a customized environment. Your partner may need to provide additional read-only data entities.

## How authorization works

Control supplies the **Application (client) ID** of its dedicated Finance application. Your Microsoft administrator
establishes that application's enterprise application, also called a service principal, in your Microsoft directory.
Your Finance administrator then maps the same application ID to the restricted integration service account inside Finance.

Control keeps its own application credential on its servers. You do not send Control a Microsoft administrator password,
service-account password, client secret, or access token. Background access uses the application's identity and the
permissions granted to the mapped Finance account.

## Authorize the Control application

**1. Confirm the Finance application ID**

Obtain the Finance application ID from your Control onboarding contact. Do not use the Business Central application ID.

**2. Establish the application in your Microsoft directory**

Ask your authorized Microsoft Entra administrator to provision the service principal for the supplied application ID
in your organization's directory and review any applicable consent or tenant policies with Control.

Creating an application mapping only inside Finance is not sufficient for cross-organization application access.
Do not copy Business Central API permissions into the Finance setup.

**3. Prepare a restricted Finance service account**

Ask your Finance administrator to create or select a dedicated service account. Assign reviewed roles and privileges
that permit reading only the required data and legal entities. Do not use the **Admin** account or assign the
**System administrator** role to make the connection work.

**4. Map the application inside Finance**

In Finance, open **System administration → Setup → Microsoft Entra applications** and select **New**.
Enter the supplied **Client Id**, a recognizable **Name**, and the restricted service account's **User ID**. Save the record.

**5. Verify the posted-ledger data contract**

Work with Control and your implementation partner to identify the actual public entities and fields in your environment.
Confirm that they contain posted ledger entries rather than unposted journal lines. Confirm complete entry keys,
accounting dates, the correct ledger and posting layer, accounting-currency amounts and signs, account references,
and separate financial-dimension fields or relationships.

Control can first inspect the available metadata without importing accounting rows. A field named “amount” or a
successful API response does not establish that the data has the required accounting meaning.

**6. Agree the first bounded read**

Confirm the non-secret connection details, legal entities, ledger, posting layer, currencies, and accounting period
with Control before the first extraction. Use your agreed secure channel for any sample data or reports.

## Verify the pilot

1. Confirm that Control can read the selected public entities using the mapped account.
2. Verify that every returned entry belongs to the intended legal entity, ledger, and posting layer.
3. Compare the selected period's balances by main account against the same Finance report and currency basis.
4. Compare financial-dimension totals and inspect representative reversals, corrections, and year-end entries.
5. Confirm access restrictions and approve the financial mapping before ongoing imports are enabled.

Posted-ledger entity availability depends on your environment and customization. An unsupported entity or changed
metadata must be reviewed before importing. An export or read-only custom entity may be needed if public OData
entities do not cover the required ledger data. Invoice documents, write-back, and parsing a combined dimension
display string are outside the initial reader's scope.

## Revoke access

Remove or disable the application's mapping in **Microsoft Entra applications** in Finance. Your Microsoft administrator
can also remove the enterprise application or its authorization from your directory. Tell Control to stop the connection.
Revoking access does not remove previously imported data; arrange any retention or deletion request separately.

## Troubleshooting

| Problem | What to check |
| - | - |
| Token request fails | Confirm the organizational directory, customer-directory service principal, and exact Finance environment address with your administrators. |
| Token works but Finance refuses access | Check the client-ID mapping, mapped service account, roles, privileges, and legal-entity restrictions. |
| Expected collection is unavailable | Ask your implementation partner to confirm that the required entity is public and available in the deployed version. |
| Control reports changed metadata | Ask Control and your partner to review and revalidate the mapping before importing again. |
| Balances differ | Compare the same legal entity, ledger, posting layer, accounting dates, closing entries, and currency basis. |

## Microsoft references

* [Finance service authentication and Microsoft Entra application mapping](https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/services-home-page)
* [Finance public OData entities and metadata](https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/odata)
* [Finance platform changes and cross-organization service-principal requirements](https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/get-started/removed-deprecated-features-platform-updates)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.