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

Entitlement error when connecting API (Postman) to BC

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Putting error and solution here.

Issue:

When connecting S2S Oauth using Postman to BC you get this error in Postman:

        "code": "Authentication_InvalidCredentials",
        "message": "Web service call failed because user could not be authenticated or authorized. 

More symptoms (OnPrem): In the Application log on the BC Server you get two warnings:

First this one:

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 this one:

MessageWithoutPrivateInformation: Your account has been authenticated with Azure Active Directory, but there is no valid license assigned to your account in Business Central. Contact your system administrator to get a valid license assigned to you.

Solution (At least in my case this was the solution):

In Postman under Advanced Options, set Resource = https://api.businesscentral.dynamics.com/

pastedimage1677235078648v1.png

Additional info:

Note that after specifying Resource as show above, this section gets added to the token (decoded in https://jwt.ms/):

"roles": [ "Automation.ReadWrite.All",

"app_access",

"API.ReadWrite.All" ]

  • Verified answer
    Marga Profile Picture
    575 on at

    Thank you for sharing Lars!

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans