Issue with Postman Request to BC250: Error Using Client Credentials Grant Type

StanTStanT Member Posts: 1
Hello everyone,

I am currently facing an issue with my Postman request to a BC250 environment.

Environment Details:
  • BC250: On-premises installation
  • ClientServicesCredentialType: AccessControlService
  • Authentication Setup: OpenID Connect with OAuth, successfully configured

When using Postman with the Authorization Code grant type, I can successfully obtain an access token by logging in with my user credentials.

When attempting to obtain an access token using the Client Credentials grant type, I encounter the following error:
Error: invalid_grant, Description: AADSTS501051: Application '<applicationid>' (<applicationName>) is not assigned to a role for the application '<applicationid>' (<applicationName>)

Steps Taken:
  • Confirmed that OpenID Connect and OAuth are correctly set up.
  • Verified that the Authorization Code grant type works without issues.

Does anyone know how to resolve this issue? Specifically:
  • Is there a missing configuration in Azure AD or Business Central that could be causing this?
  • Do I need to assign specific roles or permissions to the application for Client Credentials to work?

Any insights or guidance would be greatly appreciated!
Thank you in advance.
Sign In or Register to comment.