web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to get the second company file name with user login using API in Business Central?

(1) ShareShare
ReportReport
Posted on by 8
I am able to get all company file names with an admin login using the /companies/ API.
However, I am not able to get the second company file name with the user login.
How to get the second company file name using user login?
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,525 Most Valuable Professional on at
    Hi
    Does the user have permission in this second company? You can review the permissions that the user has in Bc.
    If you think the answer has helped you, please mark as verified.
    Best regards
    Gerardo
  • Suggested answer
    YUN ZHU Profile Picture
    97,141 Super User 2025 Season 2 on at
    Hi, what is the company file name you mentioned? This field does not exist in the companies API.
    If it is an API permissions issue, please check the settings in Microsoft Entra Application Card.
     
    If it is a permission issue after the user logs in. This is not the same user as the API. Please check the permission settings of the User Card.
     
     
    Hope this helps.
    Thanks.
    ZHU

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,072

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,234

#3
YUN ZHU Profile Picture

YUN ZHU 1,029 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans