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 Dynamics ERP application role appropriate for this connector (do not select
user_impersonation— that scope is delegated and applies only to interactive, signed-in-user flows), 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. .default is not selected here as an application permission — it is the value appended to the resource URL when the connector requests a token (see Step 5).
Step 4: Register the application in Dynamics 365 Finance
- In your Dynamics 365 Finance & Operations environment, create a service account: go to System administration > Users > New, set a User name and User ID, assign the security roles the integration needs (for example, roles that grant access to customer maintenance duties), and save the record.
- Go to System administration > Setup > Microsoft Entra applications (labeled Microsoft Entra ID applications on some versions) and select New. Enter the Application (client) ID from Step 1 as the Client Id, give the entry a descriptive Name, and set the User ID to the service account created above. Do not paste the Application (client) ID into a user record's Identity provider object ID field — that is a different mechanism and does not establish the required application registration mapping.
Step 5: Locate the service URL and token scope
-
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 -
Set the connector's
scopesvalue — a field on theOAuth2ClientCredentialsGrantConfigalongsidetokenUrl,clientId, andclientSecret— to the base environment URL (without the/datasuffix) followed by/.default:https://<your-org>.operations.dynamics.com/.default
With the tenant ID, client ID, client secret, service URL, and scopes collected, you have everything the connector needs to authenticate and connect.
What's next
- Action reference: Available operations