# Microsoft Dynamics 365

### Supported Destination Services

DinMo supports the following destination service:

* [Synchronise data objects](https://docs.dinmo.io/integrations/destination-platforms/microsoft-dynamics-365/synchronise-data-objects) - sync any dataset&#x20;

### Authentication to Microsoft Dynamics 365

Regardless of the selected destination service, DinMo will always connect to  MD365 using OAuth2 authentication. Please make sure the user who connects MD365 on DinMo has the right permissions on the target ad accounts.

You must enter the following credentials to login to MD365 from DinMo:

* Web API endpoint
* Tenant ID
* Client ID
* Client Secret

#### Setting up App Registration

To find this information, you must go through the following steps:

1. Go to the 'Azure Active Directory' portal, then 'App Registrations'
2. Create a single tenant app registration
   1. From 'Overview', copy across the **Client ID** and **Tenant ID** generated here
3. Within the App, go to 'Certificates & secrets', then click **New Client Secret**
   1. Copy this Client Secret into DinMo
4. Now you must grant the correct permissions to be able to use the app. Go to 'API Permissions', and click 'Add Permissions', where you can select 'Dynamics CRM' and enable *user\_impersonation* permission

#### Web API Endpoint

To complete your MD365 connection setup, you will need to provide your service URL (Web API Endpoint). To do this:

1. Sign in to [Microsoft Power Apps](https://powerapps.microsoft.com/).
2. Go to settings (top right corner) to open the settings sidebar. Then select 'Developer resources'.
3. Copy the Web API Endpoint from the sidebar
