Account is not found from the UI when adding to group

Olga Loseva -

Run in PowerShell

 

$Sc_URL = "http://lanteria2013

$mysite=new-object Microsoft.SharePoint.SPSite($Sc_URL)

$usr = $mysite.RootWeb.EnsureUser("DOMAIN\Username")

$mysite.RootWeb.Groups['Group Name'].AddUser($usr)

Have more questions? Submit a request

Comments

Powered by Zendesk