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

Announcements

No record found.

News and Announcements icon
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 214

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
    303,706 Super User 2026 Season 1 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
    214 on at

    Sir Andre Arnaud de Calavon ,

    I am using cloud hosted environment.

  • Mohit Rampal Profile Picture
    12,573 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
    214 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,573 Moderator on at

    Please check if this helps.

    nishantrana.me/.../

  • Arif Hussain Profile Picture
    214 on at

    Sir Mohit Rampal ,

    No, it still gives the same error of unauthorized.

  • Anton Venter Profile Picture
    20,656 Super User 2026 Season 1 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
    214 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,656 Super User 2026 Season 1 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
    214 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans