Introduction
Microsoft Dynamics CRM is a customer relationship management software package.
This guide explains how to set up Microsoft Dynamics CRM for use with Cyclr, as well as how to install a Microsoft Dynamics CRM Connector.
Setup & Authentication
Overview
The Microsoft Dynamics CRM Connector supports the following Authentication Types:
- OAuth 2.0 Authorization Code
- OAuth 2.0 Client Credentials
- AD FS (“Active Directory Federation Services”)
- AD FS OAuth 2.0 Password Credentials
- AD FS OAuth 2.0 Authorization Code
- Kerberos
Which Authentication Type to use?
The Authentication Type to use depends on your use case and the setup of the system you’re connecting to.
This diagram should help you identify which is suitable:

Obtain the Instance URL
For all Authentication Types, your customer will require their Instance URL by opening Microsoft Dynamics CRM in a web browser and making note of the fist part of the address. For on-premise installations that will include the organization name.
For example, depending on the instance’s configuration:
https://org1a2b3c.crm11.dynamics.comhttps://orgname.contoso.comhttps://crmserver/OrgName
“OAuth 2.0 Authorization Code” Authentication Type
Remote Setup in Microsoft Entra ID – performed by Cyclr Partner
You must register an app in Microsoft Entra ID:
- Set the Supported account types option to Multiple Entra ID tenants and select Allow all tenants.
- Set the Redirect URI to your Cyclr Partner Console’s Callback URL, with Select a platform set to “Web”.
- Select Manage > API permissions > + Add a permission and add the
user_impersonationdelegated Dynamics CRM permission. - Make a note of the Application (client) ID value.
- Create a client secret and make a note of its value.
For more details, see Microsoft’s guide on how to register an app.
Partner Setup in Cyclr Console
Having registered an app in Microsoft Entra ID to obtain a client ID and a client secret, go into your Cyclr Partner Console:
- Go to Connector Library > Application Connectors.
- Use the search box to locate the Microsoft Dynamics CRM Connector entry.
- Select the Pencil button.
- Select the Settings tab.
- Enter the following values:
| Property | Description |
|---|---|
| Client ID | The Application (client) ID value of your Microsoft Entra ID app. |
| Client Secret | The client secret value of your Microsoft Entra ID app. |
- Select Save Changes.
If you leave these values blank, they must be provided each time the Connector is installed.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using the OAuth 2.0 Authorization Code Authentication, the following value is required:
| Property | Description |
|---|---|
| Instance URL | The URL of the Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
After providing the above, the user will be taken to a Microsoft login page to sign in and give consent for their data to be accessed.
“OAuth 2.0 Client Credentials” Authentication Type
Remote Setup in Microsoft Entra ID – performed by your customer
Your customer must register an app in Microsoft Entra ID:
- Set the Supported account types option to Single tenant only.
- No Redirect URI is required.
- Make a note of the Application (client) ID and Directory (tenant) ID values.
- Create a client secret and make a note of its value.
For more details, see Microsoft’s guide on how to register an app.
Remote Setup in Microsoft’s Power Platform admin center – performed by your customer
Your customer must create an app user for the app registered in Microsoft Entra ID in the Power Platform admin centre:
- Select Manage > Environments and select the target environment.
- Select Settings > Users + permissions > Application users > + New app user.
- Select + Add an app, select the app registered in Microsoft Entra ID, and then select Add.
- Select a Business unit.
- Under Security roles, select the edit (pencil) icon and add a security role that can read and write the tables your Cyclr integration will use, then select Save.
- Select Create.
For more details, see Microsoft’s guide on how to create an app user.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using the OAuth 2.0 Client Credentials Authentication, the following values are used:
| Property | Description |
|---|---|
| Client ID | The Application (client) ID value of the Microsoft Entra ID app. |
| Client Secret | The client secret value of the Microsoft Entra ID app. |
| Instance URL | The URL of the Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
| Tenant ID | The tenant ID of the Microsoft Entra ID app. Values such as common or organizations are not supported. |
“AD FS” Authentication Type
Remote Setup in AD FS – performed by your customer
Your customer needs the URL of their AD FS sign-in endpoint and an account that can sign in to Microsoft Dynamics CRM through AD FS.
Forms authentication must be enabled on AD FS, and the account cannot require multi-factor authentication.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using AD FS Authentication, the following values are used:
| Property | Description |
|---|---|
| Instance URL | The URL of your Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
| AD FS Username | The user’s account for AD FS authentication. Usually in User Principal Name (UPN) format (e.g. user@your-company.com) or DOMAIN\user format. |
| AD FS Password | The password for the specified user. |
| AD FS Sign-in URL | The URL to the organization’s AD FS sign-in endpoint including the scheme. |
“AD FS OAuth 2.0 Password Credentials” Authentication Type
Remote Setup in AD FS – performed by your customer
In AD FS Management, your customer must create an Application Group with a Server application, generate a shared secret, and give it access to the Dynamics relying party trust.
No redirect URI needs to be set.
The Username and Password of the Dynamics account to be used cannot require multi-factor authentication.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using AD FS OAuth 2.0 Password Credentials Authentication, the following values are used:
| Property | Description |
|---|---|
| Client ID | The client ID to authenticate with. |
| Client Secret | The client secret to authenticate with. |
| Username | The username to authenticate with. |
| Password | The password to authenticate with. |
| AD FS URL | The URL of your organization’s AD FS server including the scheme. For example: https://adfs.example.com/adfs |
| Instance URL | The URL of your Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
| AD FS Resource | The resource identifier configured for this application in AD FS (the relying party trust identifier), used to scope the requested token. |
“AD FS OAuth 2.0 Authorization Code” Authentication Type
Remote Setup in AD FS – performed by your customer
In AD FS Management, your customer must create an Application Group with a Server application and set the redirect URI to your Cyclr Partner Console’s Callback URL, which you must provide them.
They also generate a shared secret and give the application access to the Dynamics relying party trust.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using AD FS OAuth 2.0 Authorization Code Authentication, the following values are used:
| Property | Description |
|---|---|
| Client ID | The client ID to authenticate with. |
| Client Secret | The client secret to authenticate with. |
| AD FS URL | The URL of your organization’s AD FS server including the scheme. For example: https://adfs.example.com/adfs |
| Instance URL | The URL of your Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
| AD FS Resource | The resource identifier configured for this application in AD FS (the relying party trust identifier), used to scope the requested token. |
“Kerberos” Authentication Type
Remote Setup in Microsoft Dynamics CRM – performed by your customer
Your customer needs a domain account that can sign in to Microsoft Dynamics CRM.
Cyclr Connector Installation
When installing a Microsoft Dynamics CRM Connector using Kerberos Authentication, the following values are used:
| Property | Description |
|---|---|
| Username | The username to authenticate with. |
| Password | The password to authenticate with. |
| Instance URL | The URL of the Microsoft Dynamics CRM instance including the scheme. For example: https://example.crm.dynamics.com |
Authentication Errors
For information on possible authentication errors, see this section of the Additional Information page.