1. Home
  2. Bluefort SMB
  3. BC Dataverse Integrator
  4. How to Create a Dynamics 365 CRM Application User (and Fetch Its ID)

How to Create a Dynamics 365 CRM Application User (and Fetch Its ID)

When integrating external systems with Dynamics 365 CRM, we need an Application User โ€” a non-interactive user that uses an Azure AD App Registration to securely authenticate through the API. This Application User will be needed when deploying the CRM BC Azure Function.

In this guide, weโ€™ll walk through creating a Dynamics 365 Application User and fetching its systemuserid (User ID) for API access.


๐Ÿ”น Prerequisites

Before you begin, make sure you already have:

  • An App Registration created in Microsoft Entra ID (Azure AD)
  • The following details from that app:
    • Application (Client) ID
    • Directory (Tenant) ID
    • Client Secret

If you already have those, youโ€™re ready to continue.


๐Ÿ”น Step 1: Create the Application User in Dynamics 365

  1. Go to the Power Platform Admin Center:
    ๐Ÿ‘‰ https://admin.powerplatform.microsoft.com
  2. From the left-hand menu, select Environments, and open your CRM environment.
  3. Click Settings โ†’ Users + permissions โ†’ Users.
  4. In the user list page, switch to the Application Users tab.
  5. Click + New app user.

Fill out the form:

  • App: Select your Azure app registration (this links your Entra app to Dynamics).
  • Business Unit: Choose the relevant business unit.
  • Security Role: Assign a role, such as:
    • System Administrator (full access)
  1. Click Create to finish.
    Your Application User is now active in Dynamics 365.

๐Ÿ”น Step 2: Fetch the Application User ID (systemuserid)

Next, we need to fetch systemuserid of the Application User when setting up CRM BC Connector Azure Function.

You can fetch the User Id using Advanced Find.


โœ… Using Advanced Find

  1. Open Advanced Find in Dynamics 365.
  2. Choose Users as the entity.
  3. Add a filter: Application ID equals <Your App Registration Client ID>
  4. Run the query โ€” your Application User will appear.
  5. Open the record and check the browser URL. It looks like this:

    https://yourorg.crm.dynamics.com/main.aspx?appid=...&id=<USER_GUID>&...
    The value after id= is the Application User ID (systemuserid).

๐Ÿ”น Summary

StepDescription
1Create an Application User in Dynamics 365
2Fetch the User ID via Advanced Find or Web API

Youโ€™ve now successfully linked your Entra App Registration to Dynamics 365 CRM via an Application User. Take note of the ID as it will be needed in the CRM BC Azure Function Deployment.

Updated on October 31, 2025

Was this article helpful?

Related Articles