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

Announcements

News and Announcements icon
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 1,271

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
    239,660 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,429 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
    1,271 on at

    Thank you guys. Very much appreciated

  • dark_knight Profile Picture
    1,271 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
    1,271 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 676

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 635 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 605 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans