Sharepoint restrict PeoplePicker filter shows only forms authentication users
08/12/2010 Leave a comment
If you have a sharepoint site with forms authentication , peoplepicker can able to show both AD user and Forms Authentication Membership user. But sometimes you just want PeoplePicker show only forms authentication users.You can configure sharepoint site for this using stsadm.
syntax:
stsadm -o setproperty -propertyname peoplepicker -nowindowsaccountsfornonwindowsauthenticationmode
-propertyvalue {Yes | No}
[-url] <URL>
The syntax for the getproperty operation is:
stsadm -o getproperty
-propertyname peoplepicker -nowindowsaccountsfornonwindowsauthenticationmode
[-url] <URL>
Note:You can substitute -pn for -propertyname and -pv for -propertyvalue.
Example:
To search from a membership provider only, use the following syntax:
stsadm -o setproperty -url http://<server> -pn “peoplepicker
-nowindowsaccountsfornonwindowsauthenticationmode” -pv yes
Resources:
http://technet.microsoft.com/en-us/library/cc263264(office.12).aspx