Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

"Access is denied to company 'XXXX'

Posted on by 78
Hi All,

I am encountering an issue while trying to insert record into Dimension Values of Different Companies in Business Central using Power Automate. I am Makin the use of HTTP callout for a custom API.

Interestingly, the records are being inserted successfully for the "Master Company". However, for the other companies, I am confronted with an error despite having both Admin and Super Permission Sets.

The error messaged that I receive is as Below
Error; - 
 
{
  "error": {
    "code""Internal_DataNotFoundFilter",
    "message""Access is denied to company 'XXXX'.  CorrelationId:  xxxx-xxxx-xxxx-xxxxxx"
  }
}



Thank You
Sghotekar
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,509 on at
    "Access is denied to company 'XXXX'
    The error "Access is denied to company 'XXXX'" suggests that the API user lacks necessary permissions for the other companies. Ensure the user has appropriate permissions in each company and check that the API configuration correctly targets these companies.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    "Access is denied to company 'XXXX'
    Hi, The API permission cannot be set to Super.
     
    Please check the following settings and delete the Company Name, which should solve the problem.
    PS: Using OAuth to connect Business Central APIs and Web Service in Postman
     
    Thanks.
    ZHU
  • MarceloBorges Profile Picture
    MarceloBorges 112 on at
    "Access is denied to company 'XXXX'
    Do you have the Company Name correctly spelled out, including lower/upper cases? And are you not confusing the Company Name with Display Name?
     
    Have you tried running a GET call within the same company name you're getting this error message?
  • gdrenteria Profile Picture
    gdrenteria 12,167 Most Valuable Professional on at
    "Access is denied to company 'XXXX'
    Hi
    Are you using custom APIs? Do the extension and users have the appropriate permissions in all companies?
    Best
    GR

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans