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

Announcements

No record found.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans