Thursday, January 26, 2012

How to remove “All user” from people picker

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