Share via


Peoplepicker-onlysearchwithinsitecollection: Stsadm property (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Displays only users that are members of the site collection.

Only users that are already added to the site collection are displayed in the People Picker. This prevents anyone from using the People Picker to browse a different user directory.

Typically, users that are already added to a site collection are displayed in the People Picker. This prevents anyone from using the People Picker to browse a different user directory. However, in a hosting scenario, you do not want end users to be able to search users from Active Directory; you only want the end users be able to search users that are already in the site collection.

Note

Users can search Active Directory using a fully qualified logon name, regardless of this property setting.

Syntax

The syntax for the setproperty operation is:

stsadm -o setproperty

-propertyname peoplepicker-onlysearchwithinsitecollection

-propertyvalue {Yes | No}

[-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname peoplepicker-onlysearchwithinsitecollection

[-url] <URL>

Note

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

Yes: Permits a user to search within their site collection.

No: Does not permit a user to search within their site collection.

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Examples

Display users within a site collection

If you want users to be able to search within a site collection, use the following syntax:

stsadm -o setproperty –url http://<server> –pn peoplepicker-onlysearchwithinsitecollection –pv yes

If you do not want users to be able to search within a site collection, use the following syntax:

stsadm -o setproperty –url http://<server> –pn peoplepicker-onlysearchwithinsitecollection –pv no

To view the current setting for the onlysearchwithinsitecollection property, use the following syntax:

stsadm -o getproperty -pn peoplepicker-onlysearchwithinsitecollection