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...
Suggested answer

API reply - Access is denied to company

(1) ShareShare
ReportReport
Posted on by 7

Hello, 

We try to execute an API call using OUTH2.0. This call was initially impelemented using Basic authentication and worked for about a year.

The URL is:

api.businesscentral.dynamics.com/.../company=10020

I get: 

"Exception (OdataException):response.text='{\"error\":{\"code\":\"Internal_DataNotFoundFilter\",\"message\":\"Access is denied to company \\'10020\\'.  CorrelationId:  f79f8ecd-b0e4-4842-b460-fa112846e929.\"}}': response.status_code=400"

I am guessing there is something to do with permission missing in BC365 - does anyone have any idea?

Thanks!!

I have the same question (0)
  • Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: API reply - Access is denied to company

    Hi,

    Please visit the below link to setup OAuth2.0, as the Basic authentication process is no more now from 1 Oct 2022.

    www.navwithnav.com/.../

  • Suggested answer
    Community member Profile Picture
    2 on at
    API reply - Access is denied to company
    Hi,
    Did you find the solution?
    I have two companies working with Web service, but I did a new one, and I can't connect, It's appearing this message "Access is denied to company
    In your case, maybe It was because of the due date of authentication??
     
    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

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,225

#2
Sumit Singh Profile Picture

Sumit Singh 2,123

#3
YUN ZHU Profile Picture

YUN ZHU 1,813 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans