Skip to main content

Notifications

Announcements

No record found.

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

  • Nishant Rana Profile Picture
    11,323 Microsoft Employee on at
    RE: Unauthorized 401 error when connecting to Dynamics CRM 365 OData using Postman

    This might help

    nishantrana.me/.../

  • Community Member Profile Picture
    on at
    RE: Unauthorized 401 error when connecting to Dynamics CRM 365 OData using Postman

    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>

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Unauthorized 401 error when connecting to Dynamics CRM 365 OData using Postman

    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?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans