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 :
Small and medium business | Business Central, N...
Suggested Answer

Audience validation failed when setting up OAuth On premise

(0) ShareShare
ReportReport
Posted on by 71

Hi everyone, 

I'm trying to setup API with OAuth on business central On Premise, but when calling the API with Postman i get the "audience validation failed" error. I browsed through a lot of forums but didn't find a solution that's working for me. 

I've set up my configuration using this guide https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/register-app-azure

I can get the token just fine, but i get the error when calling any API.

I tried changing the audience in postman and changing the scope but neither did anything in my case.

This is the complete message i get in the event viewer

pastedimage1683100762594v1.png

Any idea what could be the issue ? 

I have the same question (0)
  • Valentine Motin Profile Picture
    71 on at

    I was able to deal with this by adding my actual audience in the valid audiences in my instance, here

    pastedimage1683128125096v2.png

  • Suggested answer
    Yogender Singh Rana Profile Picture
    80 on at

    Hi,

    Please go through this video, this will help.

    Regards,

    Yogender Singh Rana

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans