-
Navigate to portal.azure.com and login.
-
Navigate to Microsoft Entra ID (formerly Azure Active Directory) > App Registrations > New Registration
![how-to-client_secret_1 Step 2 in Microsoft Azure](/images/default-source/helpfilesandhowto/client_secret_1.png?sfvrsn=b429d15b_0)
-
Register your Application.
-
Enter an Application name.
-
Select which account types you wish to access this API.
-
Click Register.
![client_secret_2 Step 3 in Microsoft Azure](/images/default-source/helpfilesandhowto/client_secret_2.png?sfvrsn=116b7db0_0)
-
Copy the Application (client) ID and note it for later use.
![client_secret_3 Step 4 in Microsoft Azure](/images/default-source/helpfilesandhowto/client_secret_3.png?sfvrsn=d055f91a_0)
-
Create a new Client Secret for the Application.
-
Select Certificates & secrets > New Client Secret
-
Enter a description, select an expiry duration and click Add.
![client_secret_4 Step 5 in Microsoft Azure](/images/default-source/forum-solutions/client_secret_4.png?sfvrsn=be9d0ac_0)
-
Copy the client secret and note it for later use. Make sure to copy the Value field, as below.
![client_secret_5 Step 6 in Microsoft Azure](/images/default-source/forum-solutions/client_secret_5.png?sfvrsn=4b943adc_0)
-
Grant Microsoft Dynamics permissions.
-
Select API Permissions > Add a Permission > Dynamics CRM
-
Select the checkbox for user_impersonation.
-
Click Add permissions.
![client_secret_6 Step 7 in Microsoft Azure](/images/default-source/helpfilesandhowto/client_secret_6.png?sfvrsn=7e743409_0)