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, ...
Suggested Answer

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

(0) ShareShare
ReportReport
Posted on by 206

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

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Arif,

    Are you using a cloud hosted environment or a local DEV VM? You can review the settings or use a web debugging tool like Fiddler to find more details when exactly it fails.

  • Arif Hussain Profile Picture
    206 on at

    Sir Andre Arnaud de Calavon ,

    I am using cloud hosted environment.

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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.

  • Arif Hussain Profile Picture
    206 on at

    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,565 Moderator on at

    Please check if this helps.

    nishantrana.me/.../

  • Arif Hussain Profile Picture
    206 on at

    Sir Mohit Rampal ,

    No, it still gives the same error of unauthorized.

  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at

    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
    206 on at

    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.

  • Suggested answer
    Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at

    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
    206 on at

    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

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 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans