Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Reset BCUser Passwort using NavUserPassword Authentication in Docker Sandbox

(0) ShareShare
ReportReport
Posted on by 5

Hello,

we are running several Docker Container for our students, inside the contains we are using the NavUserPassword Authentication.

We often facing the problem that a student has forgotten his/her password.

Is there a possibility to reset the password for ohter accounts for example from powershell ?


At the moment the only way I see is to create a new user with a default password

$password = "QWERTZ"

$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force

$credential = New-Object System.Management.Automation.PSCredential -argumentList "breuer", $securePassword

 New-BcContainerBcUser -Credential $credential -containerName BCAIT10380 -PermissionSetId SUPER -Verbose  -ChangePasswordAtNextLogOn 0

 

Thank you in advance



  • Bilal Haider Profile Picture
    Bilal Haider 61 on at
    RE: Reset BCUser Passwort using NavUserPassword Authentication in Docker Sandbox

    That's great.

  • sbreuer Profile Picture
    sbreuer 5 on at
    RE: Reset BCUser Passwort using NavUserPassword Authentication in Docker Sandbox

    Thank you very much for your fast reply. It was very helpfull.

    At the moment the set-NAVServerUser works fine, but for the upcoming semester I will try to create an additional admin account

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 61 on at
    RE: Reset BCUser Passwort using NavUserPassword Authentication in Docker Sandbox

    Hi,

    Try using Set-NAVServeruser command using powershell.

    Set-NAVServerUser (Microsoft.Dynamics.Nav.Management) - Dynamics NAV | Microsoft Docs

    For future, one way is to create administrator user account for each docker. And create another user for the student using this.

    Otherwise if its forgotten you are already doing it in the right way above.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans