--- title: "Application User Setup" slug: "application-user-setup" updated: 2023-05-24T12:43:38Z published: 2023-05-24T12:43:38Z canonical: "kb.easysend.io/application-user-setup" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.easysend.io/llms.txt > Use this file to discover all available pages before exploring further. # Application User Setup ## Article Overview The following article describes how to set up postman environment to query D365 CE data and how to created an application user. ## Step 1: Create Azure App (See **Figure 1** to **Figure 10**) To create a new Azure App, perform the following steps: 1. Create a new App registration in Azure, under Azure Active Directory: 1. Click **Azure Active Directory** (1). 2. Click **App registrations** (2). 3. Click **New registration** (3). ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666866437171.png) **Figure 1: New Registration** 1. Enter an **EasySend Application Name.** 2. Select **Supported account types** - **Accounts in any organizational directory (any Azura AD directory - Multitenant)**. 3. Click **Register**. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1684932064087.png) **Figure 2: Register An Application** *Result:* A new application is created with an **Application (client) ID** and **Directory (tenant) ID**: ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666871304780.png) **Figure 3: Created Application** 1. Copy and save the **Application (client) ID** and the **Directory (tenant) ID**. You will use them for [creating a Dynamic 365 resource in your EasySend environment](/v1/docs/dynamics-365-easysend-two-way-integration). 2. Create a New Client Secret under Client Secrets from **Certifications & secrets**: 1. Click **Certifications & secrets** (1): 2. Click **New client secret** (2). 3. Click **Add** (3). ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666871794775.png) **Figure 4: Certifications and Secrets** *Result:* New client secret is created: ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666872111596.png) **Figure 5: New client secret** NOTEIt is also possible to use Certificates instead of Client secrets. If a certificate is used, upload it to the services screen. For additional information, see the [EasySend's Integration Capabilities](https://kb.easysend.io/docs/easysends-integration-capabilities) article. 1. Copy the secret **Value** (marked in green) and perform the following steps: Important!You can only copy and save the Value once. 1. Click **API permissions** (1). 2. Click **Add a permission** (2). ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666872387596.png) **Figure 6: API permissions** *Result:* The following window appears: ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666872481261.png) **Figure 7: Request API Permissions** 1. Click **Dynamics CRM**. 2. Check the **User impersonation** checkbox. 3. Click **Add permissions**. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666873253196.png) **Figure 8: Permission** 1. Perform the following steps: 1. Click **Grant admin consent** (1). 2. Click **Yes** (2). ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666873601690.png) **Figure 9: Grant Admin Consent** 1. Click **Manifest**. 2. Change the **allowPublicClient** flag to true and click the **Save** button. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666873988557.png) **Figure 10: allowPublicClient Flag** ## Step 2: Add Application User in Dynamics 365 (See **Figure 11** to **Figure 13**) To add an Application user in Dynamics 365, perform the following steps: 1. Select the required **Environment** and click **Settings**. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666874074748.png) **Figure 11: Apps Screen** 1. Under **Users + Permissions** section, click **Application Users**. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666874209780.png) **Figure 12: Users + permissions** 1. Click **New app user**. 2. Click **Add an app**. 3. Select the App created in [Step 1: Create Azura App.](/v1/docs/application-user-setup#step-1-create-azure-app) 4. Select the **Business unit**. 5. Select the **Security roles**. 6. click **Create**. ![](https://cdn.document360.io/45e1a1b1-1964-46f1-939e-f40bde9b50fa/Images/Documentation/image-1666874666878.png) **Figure 13: Create a new app user**