We can disable the “All Users” from people picker via the below powershell script.
$claimMgr = Get-SPClaimProviderManager
$allUser = get-spclaimprovider –identity "AllUsers"
$allUser.IsEnabled = $false
$claimMgr.Update()
For Enabling it, use the below one
$claimMgr = Get-SPClaimProviderManager
$allUser = get-spclaimprovider –identity "AllUsers"
$allUser.IsEnabled = $true
$claimMgr.Update()
No comments:
Post a Comment