Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to get the User ID using PowerShell CSOM
I know its $replacedUser =$web.EnsureUser("domainName\Account") server side but I don't know how to do it client side
Should work more or less the same:
$identity = $web.EnsureUser($user)
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
Required, but never shown