web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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" ]

I have the same question (0)
  • Verified answer
    Marga Profile Picture
    575 on at
    RE: Entitlement error when connecting API (Postman) to BC

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,214

#2
Sumit Singh Profile Picture

Sumit Singh 2,145

#3
YUN ZHU Profile Picture

YUN ZHU 1,887 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans