Skip to main content

Notifications

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 ? 

  • Suggested answer
    Yogender Singh Rana Profile Picture
    80 on at
    RE: Audience validation failed when setting up OAuth On premise

    Hi,

    Please go through this video, this will help.

    Regards,

    Yogender Singh Rana

  • Valentine Motin Profile Picture
    71 on at
    RE: Audience validation failed when setting up OAuth On premise

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

    pastedimage1683128125096v2.png

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans