Skip to main content

Posts

Showing posts from May, 2021

Create an application user in Common Data Service/ D365/ Microsoft Dataverse

In this blog let us see Application Users in Microsoft Dataverse.  Microsoft introduced a concept called "Application Users" to connect to the D365 or Microsoft Dataverse from client application with better security and control over the access to the third parties. Before introducing "Application User", to connect Dynamics data we used to leverage licensed user account using Username and passwords. Refer the blow URL for details on the Application User setup and it's utilization. https://mspowerassist.blogspot.com/2021/05/how-to-connect-to-multi-factor-enabled.html

How to Connect to Multi-Factor Enabled Microsoft Dataverse using C# (V9.2)

As per Microsoft,  the  WS-Trust  authentication type that is used by custom clients to connect to Dataverse is deprecated. This change applicable to the client applications which tries to connect to Microsoft Dataverse. This helps developers to connect to Microsoft Dataverse with more security and protect access to the application as per the business requirement. So, in order to connect to Microsoft Dataverse, we can leverage Azure Active Directory. Microsoft Reference on the WS-Trust authentication Type Changes Pre-requisites: App Registration in Azure Portal . Create an Application User in Dataverse. Consume the Application Registration details in Console Application Application Registration in Azure Portal: Log in to Azure Portal Go to "Azure Active Directory" --> "App registrations" --> New registration Provide a Name, Choose respective "Supported account types" (first option would work for the users in same tenant) Click on "Register"