Export (0) Print
Expand All
1 out of 6 rated this helpful - Rate this topic

Peoplepicker-searchadcustomquery: Stsadm property (Office SharePoint Server)

SharePoint 2007

Updated: September 13, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-09-13

Description

Permits the administrator to set the custom query that is sent to Active Directory.

The People Picker can only do wildcard searches for Active Directory Windows group names. With any role provider other than the ones included with Microsoft Office SharePoint Server 2007, the role provider lookup is specific to the entire name. For example, if you have a group called "Readers" and you enter "Read" in the Select People and Groups dialog box, it does not find your group. If you enter "Readers", the search succeeds.

ImportantImportant:

If the property value is not a correct Active Directory query, People Picker fails. Also, if the searched attribute is not an indexed attribute in Active Directory, the performance of Active Directory is very slow.

Syntax

stsadm -o setproperty

   -propertyname peoplepicker-searchadcustomquery

   -propertyvalue <custom query string>

   [-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

   -propertyname peoplepicker-searchadcustomquery

   [-url] <URL>

NoteNote:

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

Property values

Values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

A valid string that specifies the custom query. Some valid examples are:

  • (SomeAdAttribute={0})

  • (SomeAdAttribute={0}*)

  • (SomeAdAttribute={0})(AnotherAdAttribute={0})

SomeAdAttribute and AnotherAdAttribute are the names of some indexed attributes in Active Directory.

url

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

Examples

Create a custom query in Active Directory

To create a query that searches on the last name, use the following syntax:

stsadm -o setproperty -pn peoplepicker-searchadcustomquery -pv (sn={0}*)

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

stsadm -o getproperty -pn peoplepicker-searchadcustomquery

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.