web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Not able to create application user in dynamics 365 crm online.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

All the columns are marked with lock and mandatory .
How can i create application user in dynamics 365 crm .

i have register one app in azure portal and created one user in azure.

I need to utilize this azure user to be utilized as application user, but i am not able to create it.

any help will be appreciable.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    You have to first create the user in Office 365 and then change it to Non-Interactive user.  Each CRM instance can have up-to 5 non-interactive users.

    • Please follow the steps below to create a non-interactive user
    • Creating a non-interactive user? Follow these steps:
    • Create a user account in the Office 365 Admin Center.
    • Be sure to assign a Dynamics 365 (online) license to the account.
    • Go to Dynamics 365 (online).
    • Go to Settings > Security.
    • Choose Users > Enabled Users, and then click a user’s full name.
    • In the user form, scroll down under Administration to the Client Access License (CAL) Information section and select Non-interactive for Access Mode.
    • You then need to remove the Dynamics 365 (online) license from the account.
    • Go to the Office 365 Admin Center.
    • Click Users > Active Users.
    • Choose the non-interactive user account and under Product licenses, click Edit.
    • Turn off the Dynamics 365 (online) license, and then click Save > Close multiple times.

    Go back to Dynamics 365 (online) and confirm that the non-interactive user account Access Mode is still set for Non-interactive.

    [View:https://www.qgate.co.uk/knowledge/creating-a-non-interactive-user-in-dynamics-365/:750:50]

  • EmployeeOcta Profile Picture
    6 on at

    Hello Kokulan,

    Although this point i am able to use but trouble is that i am going with different approach.

    i have register one app in azure and then created on user from there.

    i need to access that user in my dynamics 365 CRM as application user so that i will be able to utilize secret key and application id for this application user.

    how can utilize that let me know.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    When you create an account behind the scene it is creating Azure AD account.

    So the user you added via Office 365 Admin Centre for Non-Interactive user, should already be in your Azure AD page

    [View:https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/AllUsers:750:50]

    You need to set the following values in CRM for the non-interactive user for it to become an application user

    ScreenClip-_5B00_634_5D00_.png

    You should be able to do this on application user form.

    ScreenClip-_5B00_634_5D00_.png

    7624.ScreenClip-_5B00_635_5D00_.png

  • EmployeeOcta Profile Picture
    6 on at

    Hello Kokulan,

    I am still having trouble in setting up the application user.

    still the two fields are locked on the form as you mentioned.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    The 2 fields should auto populate based on the application id. They are supposed to be locked.

  • EmployeeOcta Profile Picture
    6 on at

    But very unfortunately these two fields are not automatically populated.

    Only i see that "Azure Ad object ID" is added with some value.

  • Suggested answer
    Javed Iqbal Profile Picture
    85 on at

    Hello EmployeeOcta,

    I had the same issue and after exhausting all the search & tries i ended up creating Application User via SDK.
    Though this requies a console app connected to Online deployment using tooling connector. Once console app is ready with nuget package for tooling connector following code will work.

    using System;
    using System.Net;
    using System.Collections.Generic;
    using System.Configuration;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.Xrm.Tooling.Connector;
    
    namespace updateData
    {
        class Program
        {
            static void Main(string[] args)
            {
                if (ConfigurationManager.ConnectionStrings.Count > 0)
                {
                    try
                    {                    
                        string connString = ConfigurationManager.ConnectionStrings["NGIOL"].ConnectionString;
                        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;                    
                        CrmServiceClient conn = new CrmServiceClient(connString);
                        if (conn.IsReady)
                        {
                            IOrganizationService service = conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
                            if (service != null)
                            {
                                Console.Clear();Console.WriteLine("Connected to CRM :"   conn.CrmConnectOrgUriActual.ToString());
    
                                QueryExpression qecust = new QueryExpression("businessunit")
                                {
                                    ColumnSet = new ColumnSet("name", "businessunitid"),
                                    Criteria = { Conditions = { new ConditionExpression("parentbusinessunitid", ConditionOperator.Null) } },                                
                                };
                                EntityCollection eccust = service.RetrieveMultiple(qecust);
                                if (eccust.Entities.Count>0)
                                {
                                    Entity bu = eccust.Entities[0];
                                    EntityReference buref = new EntityReference(bu.LogicalName, bu.Id);
                                    QueryExpression qeuser = new QueryExpression("systemuser")
                                    {
                                        ColumnSet = new ColumnSet("systemuserid", "applicationid"),
                                        Criteria = { Conditions = { new ConditionExpression("applicationid",ConditionOperator.Equal, new Guid("")) } },
                                    };
                                    EntityCollection ecuser = service.RetrieveMultiple(qeuser);
                                    if (ecuser.Entities.Count==0)
                                    {
                                        Entity user = new Entity("systemuser");
                                        user["applicationid"] = new Guid("");
                                        user["firstname"] = "fname";
                                        user["lastname"] = "lname";
                                        user["internalemailaddress"] = "test@dummy.com";
                                        user["businessunitid"] = buref;
                                        service.Create(user);
                                    }
                                }
                                }
                        }
                        else
                        {
                            throw new Exception(conn.LastCrmError);
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.Message);Console.ReadLine();
                    }
                }
            }
        }
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans