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 :
Microsoft Dynamics CRM (Archived)

Dynamic CRM 365 Web API Access Denied using Postman

(0) ShareShare
ReportReport
Posted on by

Hi!

I am really new to CRM and getting the right authentication for Web API is making me crazy. I have search bunch of blogs and tutorial for getting Client ID, Client Secret and Access Token through Microsoft Azure. I must say I get those without a problem. 

postman1.png

Now, I am trying to GET data from CRM and I do not know what I am doing wrong. I used the Access-token I received as you can see on the screencast above but I am getting 401 Unauthorized (Access Denied) error. Please refer below. 

postman2.png

Any help will be appreciated. Thank you. 

*This post is locked for comments

I have the same question (0)
  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    It seems like you are getting an Azure Authorization token and not the CRM Authorization token.

    Do you have the proper delegation in Azure to authenticate against CRM?

  • Community Member Profile Picture
    on at

    Hi Aric! I am very new to CRM and just registered my CRM to Azure yesterday so I do not know there is a difference on tokens. Would you mind to share on how to make sure I am getting which token ?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    Please go through the links below on connecting Dynamics CRM through Postman.

    carldesouza.com/connecting-dynamics-crm-postman

    dynamicscrmcoe.com/test-microsoft-dynamics-crm-web-api-postman

  • Suggested answer
    Velimir Profile Picture
    5 on at

    I faced the same issue. The problem is in generated token, in most of the blogs and tutorials the instructions are to use authorization Url

    login.windows.net/common/oauth2/authorize

    you need to append resource parameter in that url

    login.windows.net/common/oauth2/authorize?resource=https://********.dynamics.com/

    where "https://********.dynamics.com/" is your crm url

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans