Creating an Application User

Once the application registration is done, then an application user can be created.

  1. Navigate to your Common Data Service environment (https://[org].crm.dynamics.com).

  2. Navigate to  Settings  >  Security  >  Users.

  3. Choose  Application Users  in the view filter.

  4. Select  + New.

  5. In the Application User form, enter the required information.

    NOTE
    • The user name information must not match a user that exists in the Azure Active Directory.

    • In the Application ID field, enter the application ID of the app you registered earlier in the Azure AD.

  6. If the setup is correct, then after selecting  Save, the  Application ID URI  and  Azure AD Object Id  fields will auto-populate with correct values.

  7. Before exiting the user form, choose  Manage Roles  and assign a security role to this application user so that the application user can access the desired organization data.

Connecting your Dynamics Instance via OAuth

  1. When setting up your Dynamics connection for the first time, follow steps 1-5 of the “CRM as a Data Provider” section in this article.

  2. When prompted for OAuth credentials, fill in the Client Id, Client Secret, and Application Id URI that were set up in the section above.

a. Client Id is the Id from Step #7 in the section above. If you didn’t write it down, the Application Id is displayed in the Settings of the App registration.

b. Client Secret is the application secret created in the Azure Portal for your application under Certificates & Secrets.

c. Application ID URI is the URL of the target web API (secured resource). To find the App ID URL, in the Azure Portal, click Azure Active Directory, click Application registrations, open the application’s Settings page, then click Properties. It may also be an external resource like https://graph.microsoft.com. This is normally the URL of the Dynamics instance.

  1. After you click Submit, you will be prompted to sign in with Azure Active Directory. When the authentication is successful, your Dynamics account is connected as a data provider within Marketo Measure.