Hi seniors,
Basically, I am trying to do some integration of D365FO with Postman and I am following the below linkhttps://www.youtube.com/watch?v=Eri9PfxrCDQI 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
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.
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.
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?
Arif
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.
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.
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?
Sir Mohit Rampal ,
No, it still gives the same error of unauthorized.
Please check if this helps.
nishantrana.me/.../
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,206
André Arnaud de Cal... 847 Super User 2025 Season 2
Sohaib Cheema 596 User Group Leader