Skip to content
Business Central Musings

Business Central Musings

BC/NAV – the easy way

  • About
  • BC/NAV Community

Category: Local Business Central

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

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.

Silviu Container, Dynamics 365 Business Central, Local Business Central, New-NavContainer, New-NavContainerNewUser, Sandbox, The windows account could not be mapped to a valid security identifier (sid) Leave a comment January 7, 2019 1 Minute

Recent Posts

  • An on-demand subscriber with AL
  • How to get disk usage per folder
  • Say Hello to the new “Performance Profiler”
  • Knowing your Business Central data using the Page Inspection
  • BC20 in SaaS (preview)

Recent Comments

An on-demand subscri… on An on-demand subscriber with…
Miuru Mahagamage on Business Central On-Premise in…
Say Hello to the new… on Say Hello to the new “Pe…
Getting started with… on Getting started with Snapshot…
There is a new Posti… on There is a new Posting Preview…

Archives

  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • 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
  • Access Key
  • AL
  • Application Testing
  • az
  • Azure Business Central
  • Azure CLI
  • Azure Functions
  • Azure Portal
  • Azure powershell
  • Azure Storage
  • Azure Storage Blob Containers
  • Azure Storage Table
  • Background Error Check
  • Background Tasks
  • batch
  • BcContainerHelper
  • BindSubscription
  • Business Central headlines in role center
  • Business Central On-Premise installation
  • Chart of accounts overview
  • Cloud Migration
  • Cloud Migration Tool
  • Code Analyzers
  • company backup
  • company data restore
  • Container
  • copy files
  • create service principal
  • Data Exchange
  • Data Management
  • default line type
  • Deployment Templates
  • Dimensions
  • Docker
  • Dynamics 365 Business Central
  • Dynamics GP
  • Dynamics NAV
  • Dynamics NAV backup
  • Dynamics365 For Financials
  • Event Subscriber
  • Excel
  • Extension Permissions
  • Field Selection codeunit
  • flow
  • Get-WmiObject
  • Git
  • Global Dimensions
  • GP to BC enhancements
  • GP to BC migration enhancements
  • hardware requirements
  • import
  • lists in AL
  • Local Business Central
  • login with service principal
  • MB-800
  • Microsoft Certification
  • Microsoft Flow
  • Microsoft System
  • NAS service
  • nassql
  • NAV 2009
  • NAV 2013
  • NAV 2015
  • NAV 2016
  • NAV 2017
  • NAV 2018
  • NAV extension
  • NAV Upgrades
  • NAVContainerHelper
  • NavigatePage
  • NAVX
  • New-BcContainerWizzard
  • New-NavContainer
  • New-NavContainerNewUser
  • OnResolveDateFilterToken
  • OnResolveTextFilterToken
  • pageextension
  • Positive Pay fields
  • Post Request
  • Posting Preview
  • Postman
  • Power Automate
  • Power Platform
  • PowerApps
  • PowerQuery
  • Report Layout
  • Report Layouts
  • Rest Client
  • Restful API
  • SaaS
  • Sandbox
  • SAS Token
  • script to copy files from azure
  • SelectLatestVersion
  • Shortcut Dimensions
  • Snapshot Debugging
  • software requirements
  • Task Scheduler
  • The windows account could not be mapped to a valid security identifier (sid)
  • UnBindSubscription
  • Uncategorized
  • UseRequestPage
  • Visual Studio Code
  • Web Services
  • web services
  • Word Layout
  • 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 292 other followers

Follow Business Central Musings on WordPress.com
  • RSS - Posts
Blog at WordPress.com.
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
  • Follow Following
    • Business Central Musings
    • Join 292 other followers
    • Already have a WordPress.com account? Log in now.
    • Business Central Musings
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...