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 :
Finance | Project Operations, Human Resources, ...
Answered

HTTP request against odata collection rreturns 401 Unauthorized error

(0) ShareShare
ReportReport
Posted on by 942

Hello,

I'm trying to POST HTTP request against my ODATA collection in DEV environment via POSTMAN. I always get  error 401 Unauthorized. I tried to use Basic Authentiction and Bearer Token (there I enter code from Microsoft Authenticator) When I login to me env I enter username and password and Microsoft authentication code. Nothing worked out. 

pastedimage1647604571107v2.png

how can I authenticate to my env in a correct way?

Thank you.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    You can find quite a few articles on this topic, e.g. Configure POSTMAN for D365 FOTesting.

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Azat,

    You wouldn't need your credentials to connect. Did you do an Azure App registration and set it up in D365 F&O? You can check this post to check the steps to be followed. Once this is done, you can check the steps in this post to setup postman to make a call to D365.

  • dark_knight Profile Picture
    942 on at

    Thank you guys. Very much appreciated

  • dark_knight Profile Picture
    942 on at

    did everything like it is in instruction. Access token has been generated successfully but now I get 403 error forbidden

    JSON response is

    {
        "Message": "Please verify that the user is valid and set up correctly."
    }

  • dark_knight Profile Picture
    942 on at

    Changed user in FO and now it works fine returning code 200. Thank you again

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans