NAV musings

Business Central | Dynamics NAV

Menu

Skip to content
  • About
  • NAV Community

Category Archives: Sandbox

The windows account could not be mapped to a valid security identifier (sid).

Standard

Problem

A bit of context here … I was trying to create an environment in which to write an extension around workflows and notifications.

I needed 2 users, one to generate the document and the other one to receive the notification to approve it.

I decided to create a local Business Central sandbox and point my extension to this environment.

So I ran the New-NavContainer cmdlet as below

create sandbox

When I try to create the user as a local Windows user in the host, and in the Business Central sandbox the username gets translated into the SID for that Windows:

create user windows cred

And after I logged as the new local user, launching BC sandbox Client it fails:

login failed

Then I’ve seen someone recommending to run New-NavContainerNewUser … so I gave it a try:

new-navcontainernavuser

This is the issue and I have not been able to find a solution yet.

Workaround

Create the sandbox with “-Auth NavUserPassword” like below:

sandbox with navuserpwd

You will be prompted for credentials of the first user (I named mine svi) when you run the script.

The cmdlet New-NavContainer will create among many other things, a sql login with sysadmin server role.

sql

Once the script is finished, launch BC Sandbox client, use the credentials entered at installation and create a new user.

Now I have 2 users and can continue my tests on Workflows/Approvals:

users

If you have a solution for a local BC sandbox with Credential Type (-Auth param in New-NavContainer) set to Windows and the issue expressed in the title, please leave a comment with your solution.

Otherwise, I hope this workaround can help anyone with the same issue.

January 7, 2019 Leave a comment

Recent Posts

  • Parsing RunRequestPage output using XML Buffer
  • New-BcContainerWizzard generates scripts to build NAV or Business Central containers
  • Report design: show row only on the first page
  • How to get all Windows services when you know the name of the executable
  • Git101 leaflet for AL developers

Recent Comments

Silviu on How to PowerApps with Business…
Silviu on How to PowerApps with Business…
Silviu on How To : 5 Easy Steps to gener…
mohammad rizki maula… on How to PowerApps with Business…
Novini Media on How to PowerApps with Business…

Archives

  • August 2020
  • January 2020
  • October 2019
  • January 2019
  • December 2018
  • January 2018
  • October 2017
  • September 2017
  • August 2017
  • April 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016

Categories

  • .NET
  • AL
  • Application Testing
  • az
  • Azure Business Central
  • Azure Functions
  • Azure Portal
  • Azure powershell
  • BcContainerHelper
  • Business Central headlines in role center
  • Code Analyzers
  • company backup
  • company data restore
  • Container
  • Deployment Templates
  • Dimensions
  • Docker
  • Dynamics 365 Business Central
  • Dynamics NAV
  • Dynamics NAV backup
  • Dynamics365 For Financials
  • Event Subscriber
  • Extension Permissions
  • Get-WmiObject
  • Git
  • Global Dimensions
  • import
  • lists in AL
  • Local Business Central
  • Microsoft Flow
  • NAS service
  • nassql
  • NAV 2009
  • NAV 2013
  • NAV 2015
  • NAV 2016
  • NAV 2017
  • NAV 2018
  • NAV extension
  • NAV Upgrades
  • NAVContainerHelper
  • NAVX
  • New-BcContainerWizzard
  • New-NavContainer
  • New-NavContainerNewUser
  • pageextension
  • PowerApps
  • Report Layout
  • Sandbox
  • Shortcut Dimensions
  • The windows account could not be mapped to a valid security identifier (sid)
  • Uncategorized
  • UseRequestPage
  • Visual Studio Code
  • Web Services
  • XML Buffer

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 209 other followers

Follow NAV musings on WordPress.com
  • RSS - Posts
Create a free website or blog at WordPress.com.
Cancel

 
Loading Comments...
Comment
    ×
    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy