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...
Unanswered

Common api / authentication errors

(1) ShareShare
ReportReport
Posted on by

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,380 Super User 2025 Season 2 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

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