Retrieve credentials for third-party apps
Overview
To connect Anduin to Microsoft Dynamics 365, you need to register an application in Microsoft Entra ID (formerly Azure Active Directory) using the OAuth 2.0 Client Credentials flow. Follow the steps below to obtain the following credentials:
| Credential | Where to find it |
|---|---|
| Web API URL | Your Dynamics 365 environment URL |
| Token URL | Azure portal > App > Endpoints > OAuth 2.0 token endpoint (v2) |
| Scopes | Web API URL + /.default |
| Client ID | Azure portal > App > Overview > Application (client) ID |
| Client Secret Value | Azure portal > App > Certificates & secrets > Value |
Step 1 — Register an app in Azure portal
- Go to the Azure portal and sign in with an admin account.
- Search for Microsoft Entra ID and select it.
- Under Manage, select App registrations > New registration.
- Enter a name (e.g.
Anduin Integration - Dynamics 365), leave other fields as default, and click Register.
Step 2 — Get your Client ID and Token URL
From the app's Overview page:
- Client ID: Copy the Application (client) ID
- Token URL: Click Endpoints > copy the OAuth 2.0 token endpoint (v2)
- Format:
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
- Format:
Step 3 — Generate a Client Secret
- In the left sidebar, go to Certificates & secrets > New client secret.
- Add a description and set an expiry duration (max 24 months).
- Click Add and immediately copy the Value — this is your Client Secret Value.
The value is only shown once. Copy it before navigating away.
Step 4 — Get your Web API URL and Scopes
Find your Dynamics 365 environment URL in the Power Platform Admin Center.
- Web API URL:
https://yourorg.crm.dynamics.com/ - Scopes: Web API URL +
/.default—https://yourorg.crm.dynamics.com/.default
Step 5 — Grant Dynamics CRM API permissions
- In the left sidebar, go to API permissions > Add a permission.
- Select Dynamics CRM > Delegated permissions > check user_impersonation.
- Click Add permissions, then Grant admin consent and confirm.
Step 6 — Add the app as an Application User in Dynamics 365
- Go to the Power Platform Admin Center.
- Select Environments and choose your Dynamics 365 environment.
- Select S2S Apps.
- Click New app user.
- Click Add an app.
- Search for and select the app registered in Step 1. You can search by the Client ID you noted.
- Select your Dynamics tenant as the Business unit.
- Under Security Roles, select System Administrator.
- Click Create.
Updated about 3 hours ago