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

Common api / authentication errors

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

This is a post to place typical errors and solutions to make them searchable to Bing. Please feel free to add your own examples as and when you come across something that may be useful to others.

Error:

When just running a general API call (just GET on companies), postman shows this error:

    "error": {
        "code""Authentication_InvalidCredentials",
        "message""Web service call failed because user could not be authenticated or authorized.  CorrelationId:  0e82377d-b2af-437d-be1d-71c99ea29421."
    }
This error is a generic "something went wrong in authentication"-error, so if possible try to get more details, either via telemetry, or for OnPrem, if you get this warning in the Applicatoin Log:
Message User signed in with the following information: user type=Normal user, entitlement set Ids=, authorization status=Failed, guest user=False, failure reason=A user successfully authenticated in Azure Active Directory but the user does not have any entitlements in Business Central.

Then one possible option is that the role-section is missing in the token. Decode the token for example on JSON Web Tokens - jwt.io and check that the token contains a section like this:
"roles": [
"Automation.ReadWrite.All",
"app_access",
"API.ReadWrite.All"
]
In postman, go to "Advanced Options" and set Resource = api.businesscentral.dynamics.com/:
pastedimage1660563976217v1.png
======
I have the same question (0)
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans