Skip to main content

Notifications

Business Central forum
Suggested answer

"Access is denied to company 'XXXX'

Posted on by 70
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. 1,382 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 68,142 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 8,339 Super User 2024 Season 2 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

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans