Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

(0) ShareShare
ReportReport
Posted on by 178

Hi seniors,

Basically, I am trying to do some integration of D365FO with Postman and I am following the below link

https://www.youtube.com/watch?v=Eri9PfxrCDQ

I have done all the steps and I have double checked too but still I am getting unauthorized error in Postman while sending the GET request. I want to share something which I think is the cause of this error. Please do correct me if I am wrong.

I am accessing the Azure portal using an admin account and in this account the dev environment is being set up in MS Azure but we access the Dev Environment (OneBox/Frontend) using another account which is completely different from the above account I mentioned. I have registered the app using the admin account and I have passed the URL the Dev Env URL as a Web. But I have added the client id in the azure portal of the dev environment (I am taking about the onebox / frontend D365) which I can access only using the other account other the admin which I mentioned above. So, can you tell me is it the reason I am getting this error or what-else possibilities can be there for the occurring of this error? 


Your any suggestion would really help me. Thanks in advance 

Regards,

Arif Hussain

  • Anton Venter Profile Picture
    19,545 Super User 2025 Season 1 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Hi Asrif,

    This MS article worked for me: learn.microsoft.com/.../third-party-service-test

    Make sure the Azure application registration is working and you can authenticate with by requesting a valid JWT token supplying the application client id and secret.

    Then add the application client id in Dynamics 365 Finance and try to call D365 Finance with the JWT token in the header as discussed. If you can't get it working, share more detailed information with us.

  • Arif Hussain Profile Picture
    178 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Plus I am getting this error CP="No P3P policy defined.  Read the Microsoft privacy statement at go.microsoft.com/.../ in my response header as p3p.

  • Arif Hussain Profile Picture
    178 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Sir Anton Venter ,

    I think the admin issue I discussed is the problem as I have tried all the steps but still, it shows unauthorized. So, what do you think about it?

    Regards,

    Arif

  • Suggested answer
    Anton Venter Profile Picture
    19,545 Super User 2025 Season 1 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    You should always add a valid JWT token to the HTTP header section as described/displayed in the screenshot of my previous message. Microsoft Dynamics 365 Finance is expecting the JWT token to be in the HTTP header section. If the JWT token is not in the HTTP header as expected, it will never authenticate your request/post sucessfully.

  • Arif Hussain Profile Picture
    178 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Hi sir Anton Venter ,

    I think the access token is valid and I am directly using that token in the Authorization section of Postman instead of the header as mentioned above wherein 'Type' I am selecting 'Bearer Token' and then passing my token in it. I think we can do it this way as well and I am getting the unauthorized error.

  • Anton Venter Profile Picture
    19,545 Super User 2025 Season 1 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Hi Arif,

    Can you share more information about your situation? I did not watch the YT video so I will ask some basic questions. Authentication is done in two steps. Is the first step working? Are you getting a valid JWT token? Paste the token in https://jwt.ms to check. The JWT token is invalid after one hour by default. Then, are you sending the token correctly when calling D365 Finance? The JWT token should be preceded with "Bearer" and there should be space in between "Bearer" and the JWT token. Did you check that the correct Application Client Id has been added in D365 Finance?

    2023_2D00_06_2D00_11-09_5F00_14_5F00_49_2D00_Custom-service-Dev-_2D00_-interface-_2D00_-inb.-conf.-v3-_2D00_-Picking-Test-SB_5F00_AV-230605-_2D00_-DP-.png

  • Arif Hussain Profile Picture
    178 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Sir Mohit Rampal ,

    No, it still gives the same error of unauthorized.

  • Mohit Rampal Profile Picture
    12,556 Moderator on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Please check if this helps.

    nishantrana.me/.../

  • Arif Hussain Profile Picture
    178 on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Sir Mohit Rampal ,

    I am getting unauthorized error while accessing the data entity. Yes, in azure active directory I am using Admin account.
    Here is the screen shot as requested.

  • Mohit Rampal Profile Picture
    12,556 Moderator on at
    RE: How to resolve unauthorized error when sending a GET request to D365 FO resource URL?

    Hi Arif, Are you getting unauthorized error while getting Token or accessing data entity? In Azure Active Directory Applications form, are you using Admin account? Please share screenshot of Get request.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans