Skip to main content

Notifications

Dynamics 365 Community / Blogs / Customizing Dynamics 365 / How to create an Applicatio...

How to create an Application User in Dynamics 365 CE

Go to https://portal.azure.com/ and search for "App Registrations" :

5074.pastedimage1681214703487v1.png

 

On the App registrations blade, click on "New Registration" :

8688.pastedimage1681214838019v2.png

  

On the registration page, fill the Name and click on "Register" :

1680.pastedimage1681214951689v3.png

 

After successful creation, copy the "Application (client ID)" GUID and click on "Add a certificate or secret" :

7041.pastedimage1681215196379v4.png

 

On the Certificates & Secrets blade, go to the " Client Secrets" tab and click on "New Client Secret" :

5383.pastedimage1681215476467v5.png

 

Fill in the Description field and choose an expiry time :

3010.pastedimage1681215572241v6.png

 

After pressing "Add", copy the client secret Value field :

1727.pastedimage1681215630135v7.png

 

Go to the "API Permissions" blade and click on "Add a permission" 

4807.pastedimage1681216826992v14.png

 

Select the Dynamics CRM API and check the "user_impersonation" permission. Click on "Add Permissions" :

8512.pastedimage1681216901428v15.png

 

Now that we have an application user created, we need to give it permissions on the Dataverse instance : 

Go to https://admin.powerplatform.microsoft.com/ , Environments and open the environment where you want to give permissions to the App User and click on "Settings" 

2235.pastedimage1681215989531v8.png

  

On the Settings page, expand "Users + permissions" and click on "Application users"

0677.pastedimage1681216074319v9.png

 

On the "Application Users" page, click on "New App User", on the popup click "Add an app" and search for your just created App User :

3757.pastedimage1681216275559v10.png

 

Select it and click "Add", select the Business Unit and choose one or more security roles and click "Create" :

6355.pastedimage1681216401758v11.png

 

If the user is successfully created a message like the below should appear and the App User should be visible on the grid :

4520.pastedimage1681216542247v12.png

 

If using XRM Tooling, you can connect with the App User using a connection string like the one below :

<add name="MyCDSServer" 
  connectionString="
  AuthType=ClientSecret;
  url=https://contosotest.crm.dynamics.com;
  ClientId={AppId};
  ClientSecret={ClientSecret}"
  />

Comments

*This post is locked for comments