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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

401 unauthorized error for Discovery endpoint

(0) ShareShare
ReportReport
Posted on by 5

Hi there,

I want to use restful webservices to make some operations on contacts, leads and opportunities.

I have registered my app in Azure for oAuth authentication. I got the access token. But when I am trying to hit discovery endpoint  https://globaldisco.crm.dynamics.com/api/discovery/v2.0/Instances with that access token, its giving me 401 Unauthorised response with a message 

"Authorization has been denied for this request."
I also tried sending a http request using organization URI  o********7.api.crm.dynamics.com/.../WhoAmI 
it is also giving me 401 Unauthorised response
Please help me in this.
I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    RE: 401 unauthorized error for Discovery endpoint

    Have you created Application user in the CRM with respect to this Azure App ? If no please follow the below steps.

    https://optimallogics.com/connect-to-ms-dynamics-365-crm-using-oauth-in-c-sharp/

    Thank you,

    Amit katariya

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 149

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 132

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 123 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans