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

Unauthorized 401 error when connecting to Dynamics CRM 365 OData using Postman

(0) ShareShare
ReportReport
Posted on by

I Have a trial license for Dynamics 365 CRM online. I can connect from office 365 to the url of the Crm service in IE Explorer as:

        myorg.crm4.dynamics.com
The url is like this
Also I can access Odata as:

         myorg.crm4.dynamics.com/.../accounts

I try to connect to the Odata service using Postman.I created an application in azure with permissions to CRM as described here
I get an access_token, so this insure that the resource is valid.
I tried to do GET request to the resource using this valid access_token but postman respond with 401 Unauthorized
I read tens of pages but it can't help. I suspect (but not sure) that Odata service may not available in the trial version for developers.

The Question:
What I missed to run that example and connect to OData service?
Why I get the error Unauthorized 401 although i pass a valid access_token generated for the service myorg.crm4.dynamics.com

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Once you generated the token, are you clicking on the button that says use the token?

    Also  make sure the request header has the token added?

  • Community Member Profile Picture
    on at

    Yes, I did, click the button that says use the token.

    even I try in the browser to call it using the generated accesss_token as : https://myorg....?access_token=<my-generated-access-token-here>

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    This might help

    nishantrana.me/.../

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

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans