Skip to content Skip to site navigation

Linking to StanfordWho Results

Stanford web sites can link to StanfordWho search results, instead of displaying static contact information on web pages (where it can go out of date and be easily picked up by spam robots).

Display public search results

Display matches in the public view of the directory, using this URL (replacing "jdoe" with a SUNet ID or other search term):

  • http://stanfordwho.stanford.edu/SWApp/lookup?search=jdoe

You can pass a search via URL using any term or combination of terms allowed in the StanfordWho search box, and replacing spaces and punctuation with escape codes.

  • http://stanfordwho.stanford.edu/SWApp/lookup?search=John%20Doe
  • http://stanfordwho.stanford.edu/SWApp/lookup?search=J%2EJ%2E%20Doe
replace with
space %20
period (.) %2E
hyphen (-) %2D
@ %40

Display Stanford- and Affiliates-only search results

Display matches in the restricted (Stanford- and Affiliates-only) view of the directory — the user will be required to login to view the results. This search uses https to connect to the secure server, and adds /auth/ to the path before the lookup command:

  • https://stanfordwho.stanford.edu/SWApp/auth/lookup?search=jdoe

Legacy links

Because so many web sites were already using links to StanfordWho results, the new StanfordWho application continues to support the previous URL structure:

  • http://stanfordwho.stanford.edu/lookup?search=jdoe
  • https://stanfordwho.stanford.edu/auth/lookup?search=jdoe

However, there is one important difference in the way search URLs are now handled: you must now be careful not to use https unless you are explicitly requesting a secure Stanford-only search, and the URL includes /auth/lookup. If you use https with a public search request, the server will redirect the search from the secure server to the public server, and the user may see a security alert in their browser.

Last modified December 3, 2012