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

Notifications

Announcements

No record found.

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,216 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,216 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,216 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans