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 :
Customer experience | Sales, Customer Insights,...
Answered

How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

(0) ShareShare
ReportReport
Posted on by

Hello,

I am new to Azure AD, i need to create an application registration in AD to delegate permission to Dataverse CRM Dynamics, in order to access Dynamics CRM using Authentification Type = Oauth v2

but azure requierse me to provide the RedirectURI, which i dont know from where i can get it, so can any give me an idea how to find it or create it?

For information, i need this RedirectURI to ensure connection to crm using the next connection string that requires the RedirectURI:

example : connectionString = "AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=contosotest.crm.dynamics.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d; RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;LoginPrompt=Auto"

thanks for your help in advance.

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi Mitmog4Ever, 

    Suppose you want to connect to the CRM via a console application. 

    You will use your localhost as RedirectUri: 

    connString="AuthType=OAuth;Username=admin@CRMxxxxonmicrosoft.com;Password=xxxxxx;Url=https://xxxxxx.crm4.dynamics.com;AppId=b23a3ca5-e353-4c7c-8c19-851d4433ce46;RedirectUri=http://localhost;TokenCacheStorePath=c:\\MyTokenCache;LoginPrompt=Auto";

    AAD: 

    pastedimage1620209778601v1.png

    Also, you need to modify your Manifest: 

    pastedimage1620209860835v2.png

  • Community Member Profile Picture
    on at

    Hello Mehdi,

    Thank you for your support, i faced this problem when i set the redirect url to http://localhost :

    pastedimage1620398396372v1.png

    can you please tell how you setted yours?

  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, 

    You have this error because you are trying to enter the "Front-channel logout URL" instead of "Redirect URIs".

    pastedimage1620399001422v1.png

  • Community Member Profile Picture
    on at

    Hi Mehdi,

    Thank you for your support, i did all what you told me, now i dont get an error of redirect url, but i still can't connect to crm, (no error message) do i need to create a user for the new app registration, in every organisation as shown at the end of this tuto?

    sank8sinha.wordpress.com/.../.

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    You don't need to create a user. Please refer to the blog and tutorial below:

    https://youtu.be/wzPdkZ7N2Gw

    softchief.com/.../

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans