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

API permissions issues and general api usage

(0) ShareShare
ReportReport
Posted on by 477

Greetings,

I posted yesterday about the API documentation, trying to find more info. As I feared, the info available is very limited.

After searching and experimenting untill it worked, I managed to get the token authentication working and I am able to call /companies and see the companies.

However, anything else i try to call, like companies(ID)/customers gives a permisison error.

The api app has super permisison, so... Something is missing. The problem, like always with business central, is that I am supposed to guess what is wrong.

As I allready mentioned, the user has super permission. I rechecked in the permission tab, everything is set to true.

Still: 

{
    "error": {
        "code": "Internal_ServerError",
        "message": "You do not have the following permissions on Page APIV2 - Customers: Execute.\r\n\r\nTo view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '4841'.  CorrelationId:  _ID_."
    }
}
Reporting the problem to microsoft will take a day before I get a an answer, and I will probably meet another issue after that.
Is there really no way to get better/more information on how to use the api? The amount of frustration generated by using business central is astonishing :D THe info is usually incomplete or outdated when you try to start working on more complicated aspects besides the easy "create a new page" stuff.
Are there other resources besides this board and the official incomplete documentation?
Cheers
  • eman_calma Profile Picture
    eman_calma 10 on at
    RE: API permissions issues and general api usage

    Hi, I know it has been months but have you figured out the solution? I am facing the exact problem at the moment and I cant find any solution. Thanks!

  • Hedi Daneels Profile Picture
    Hedi Daneels 477 on at
    RE: API permissions issues and general api usage

    I did a lot more research.

    There seem to be an issue with auth0 vs basic auth. When using basic auth, BC says to use auth0, when trying to use auth0, BC says you cant use auth0 for the soap api... ????

    If anyone can enlighten us please? :)

    I can get the api to work using basic auth, but, it says clearly that basic auth will be deprecated soon.

  • Hedi Daneels Profile Picture
    Hedi Daneels 477 on at
    RE: API permissions issues and general api usage

    Hi,

    Here is some extra info: I removed the application access in the api settings of the azure app.

    Now i have this: {

       "error": {

           "code": "Authentication_InvalidCredentials",

           "message": "The server has rejected the client credentials.  CorrelationId:  ef1b03ed-cb0f-4b07-b1ed-03d8d814d8f7."

       }

    }

    I have granted access in the aad application setup of business central too. Does not seem to change anything.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans