Skip to main content
Business Central forum
Suggested answer

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

editSubscribe (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?
Attachments
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User 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
    gdrenteria 2,743 Super User 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

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,080 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,601 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans