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

API permissions issues and general api usage

(0) ShareShare
ReportReport
Posted on by 487

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
  • Hedi Daneels Profile Picture
    487 on at

    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.

  • Hedi Daneels Profile Picture
    487 on at

    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.

  • eman_calma Profile Picture
    10 on at

    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!

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 674 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 362 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 359 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans