Skip to main content

Notifications

Announcements

No record found.

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?
  • Suggested answer
    YUN ZHU Profile Picture
    79,097 Super User 2025 Season 1 on at
    How to get the second company file name with user login using API in Business Central?
    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
  • gdrenteria Profile Picture
    15,635 Most Valuable Professional on at
    How to get the second company file name with user login using API in Business Central?
    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans