Using a Query String with Directory Search

We introduced a feature in Directory Search v1.6 that allows you to pass to Directory Search a query string that will start an initial search. This feature was developed for a limited set of uses and is unsupported, but is available for you to use if it meets your needs.

In the following examples the server fully qualified domain name (FQDN) is http://servername.acme.local. Here is an example of starting the initial search query for all users whose department contains "Accounting"

http://servername.acme.local/directorysearch/default.aspx?department=accounting

The Directory Search URL query string feature has some limitations. These include:

  • The search type is always a "contains". You cannot specify a "starts with" or "ends with" search.
  • Multiple query strings cannot be combined. You can only query a single attribute in a search.
  • The query value cannot have spaces. It must be a single word, such as "accounting", not "accounting department". Quotes cannot be used in the query string.
  • Query string searches work best with text fields. Phone number fields may produce inconsistent results.
  • Seaches are not case senstive.

Here is an excample querying all users whose office contains Honolulu. Note that we have to use the LDAP attribute name physicalDeliveryOfficeName rather than just "office".

http://servername.acme.local/directorysearch/default.aspx?physicaldeliveryofficename=honolulu