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

getting postman error when calling a webservice - The server has rejected the client credentials

(1) ShareShare
ReportReport
Posted on by 32
In Postman - I have clientid, tenantid, secret values
I have retrieved an oauth token succesfully
but subsequent calls retyurn an arror example
https://api.businesscentral.dynamics.com/v2.0/{{oAuthTenantID}}/Sandbox/ODataV4/Company('CRONUS%20USA%2C%20Inc.')/companies
{"error":{"code":"Authentication_InvalidCredentials","message":"The server has rejected the client credentials. CorrelationId: fb65aa3e-99d6-459a-ae17-690b0ec1b7b7."}}
Categories:
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
     1. Expired Access Token 
    - OAuth tokens have a limited lifespan (typically 1 hour). 
    - Solution: Refresh the token before making subsequent calls.

     2. Incorrect API URL Structure 
    - Ensure the URL follows the correct format: 
      https://api.businesscentral.dynamics.com/v2.0/{{tenantId}}/{{environmentName}}/api/...
    - Common Mistake: Using `Sandbox` instead of the actual environment name.

     3. Missing or Incorrect Scope in Token Request 
    - The token must include the correct scope (e.g., `https://api.businesscentral.dynamics.com/.default`). 
    - Postman Example: 
      {
          "grant_type": "client_credentials",
          "client_id": "{{clientId}}",
          "client_secret": "{{clientSecret}}",
          "scope": "https://api.businesscentral.dynamics.com/.default"
      }


     

     
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,527 Super User 2025 Season 2 on at
    Typically indicates an issue with the configuration of your Azure Active Directory (Azure AD) application or its permissions within Business Central. Assign Super your permission and try again.
     
     
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
     
  • Jonas "Jones" Melgaard Profile Picture
    4,980 Most Valuable Professional on at
    Moved to the SMC forum, since this is related to Business Central.
    Do notice that blacking out text in the question text editor will not hide the text.
  • Suggested answer
    YUN ZHU Profile Picture
    95,681 Super User 2025 Season 2 on at
    Hi, It looks like you haven't added this app in BC's Microsoft Entra Application and given permissions.
    You can check it first.
     
    Thanks
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,441 Super User 2025 Season 2 on at
    Adding more: you should add the extension in permission.
     
  • Verified answer
    Sohail Ahmed Profile Picture
    11,148 Super User 2025 Season 2 on at

    You might be missing necessary permissions inside Business Central for the app you're using.

    Here's how to fix it:

     
    1. In Business Central, search for “Microsoft Entra Applications”.

    2. Click New.

    3. Enter your Application (client) ID and a name.

    4. Under User Permissions, assign the following permissions:

       
      • D365 BASIC

      • SUPER (DATA) or other relevant permission sets based on your needs  

     

    This grants your registered Azure AD app the right access level inside BC.

    📎 Find the attached screenshot for your reference.

    Click Grant Consent (You must be an admin for this)

     

    Once done, retry your request — it should authenticate correctly.

    Mark below checkbox to make this answer Verified if it helps you.

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 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans