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
======
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,468 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 711 Super User 2026 Season 2

#2
Teagen Boll Profile Picture

Teagen Boll 377 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 367 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans