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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Authentication for On-premises environment

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I setup on-premises installation of dynamic 365 business central.

and started hello world project for Visual studio code,

when i want to run it requires username and password...

i want to know what is this username and password and where i can find it or configure it,

i have a cloud sandbox username an password and works for cloud server in visual studio code..

I have the same question (0)
  • gradient Profile Picture
    120 on at

    Hi,

    If you want to develop extension then you use your username & password (same as you login into BC). If you want to connect to API/web Services then you have to create Web Resource key on User Setup page and use it as a password (Basic authentication). Just be aware that the the last authentication method is deprecated and will be replaced by OAuth next year.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    On NST you can set authentication type to NavUserPassword, Windows and Azure AD (AccessControlService). There may be a few others to select from, but these are the ones that are relevant.

    If you set NavUserPassword on NST, you can choose UserPassword. If you choose AccessControlService, you can select AAD in VS Code. Idem for Windows.

    Thanks.

  • tanya07 Profile Picture
    1,638 on at

    Hello,

    To top Marco's reply

    This authentication - NAVUserPassword is managed by Business Central Server.

    And to configure it , have a look to this blog -

    www.sauravdhyani.com/.../msdyn365bc-modern-client-with.html

    Hope this helps :)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,497 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans