Skip to main content

Notifications

Announcements

No record found.

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 Microsoft Employee

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.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,206 User Group Leader on at
    RE: How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

    Hi,

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

    https://youtu.be/wzPdkZ7N2Gw

    softchief.com/.../

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

    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/.../.

  • Verified answer
    meelamri Profile Picture
    meelamri 13,206 User Group Leader on at
    RE: How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

    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
    Community Member Microsoft Employee on at
    RE: How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

    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
    meelamri 13,206 User Group Leader on at
    RE: How can i create a redirectURI for application registration in Azure AD to delegate permission to CRM dynamics

    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,784 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans