Setup Guide
This guide walks you through registering an application in Microsoft Entra ID, granting it access to the Dynamics 365 Finance and Operations OData API, and obtaining the credentials required by the connector.
Prerequisites
- A Microsoft Dynamics 365 Finance & Operations environment (cloud-hosted or sandbox), with System administration access.
- Access to the Microsoft Entra admin center for the same tenant as the environment, with permission to register applications.
Step 1: Register an application in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center and navigate to Identity > Applications > App registrations > New registration.
- Enter a display name for the application, select the appropriate Supported account types, and select Register.
- On the application's Overview page, note the Application (client) ID and Directory (tenant) ID. Both values are required to initialize the connector.
Step 2: Create a client secret
- In the application's left navigation, select Certificates & secrets > Client secrets, then select New client secret.
- Add a description, choose an expiration period, and select Add.
- Copy and store the secret's Value immediately.
The client secret value is shown only once. Store it securely and never commit it to source control. Supply it to your integration at runtime through a configuration mechanism such as a Config.toml file.
Step 3: Grant Dynamics 365 API permissions
- In the application, select API permissions > Add a permission > APIs my organization uses.
- Search for Dynamics ERP (this covers Dynamics 365 Finance and Operations environments) and select it.
- Choose Application permissions, select the
.defaultscope, and select Add permissions. - Select Grant admin consent for
<your tenant>and confirm.
Because this connector uses the OAuth 2.0 client credentials grant, the application must be granted application permissions, not delegated permissions, and those permissions must be consented to by a tenant administrator before the connector can obtain an access token.
Step 4: Add the application as a Dynamics 365 Finance user
- In your Dynamics 365 Finance & Operations environment, go to System administration > Users > New.
- Set a User name and User ID, then in the Identity provider object ID field, paste the Application (client) ID from Step 1.
- Assign the security roles the integration needs to work with system configuration data (for example, roles that grant access to the System administration duties covering reason codes, product types, registrations, rooms, work calendars, and web service configuration) and save the record.
Grant only the roles required for the specific entity sets your integration uses. System configuration entities such as WebServices and TableMappings are typically restricted to administrative roles — avoid assigning broader access than the integration needs.
Step 5: Locate the service URL
-
While signed in to your Dynamics 365 Finance & Operations environment, note the base URL shown in the browser address bar, for example
https://<your-org>.operations.dynamics.com. -
Append
/datato this URL to form the OData root that the connector uses as itsserviceUrl:https://<your-org>.operations.dynamics.com/data
With the tenant ID, client ID, client secret, and service URL collected, you have everything the connector needs to authenticate and connect.
What's next
- Action reference: Available operations