Sharepoint restrict PeoplePicker filter shows only forms authentication users


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&gt; -pn “peoplepicker
-nowindowsaccountsfornonwindowsauthenticationmode” -pv yes
Resources:

http://technet.microsoft.com/en-us/library/cc263264(office.12).aspx

Advertisement

About bpostaci
Escalation Engineer in Microsoft.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: