People Directory doesn't display some accounts / or displays disabled users

Origami People Directory pulls user accounts from SharePoint People Search.

In some cases, you might be seeing user accounts for users that are no longer with the organization. Or, you might be missing people results that should be in the directory.

Here is how to troubleshoot this using SharePoint Search Query Tool:

  1. Download SharePoint Search Query Tool from here: Releases · pnp/PnP-Tools · GitHub

  2. Extract the ZIP file and run SearchQueryTool executable on any computer.

  3. In the Connection section, please enter tenant URL, and authentication information as shown below:

  4. We recommend logging in with the SharePoint Admin account.

  5. Under the Query Text, please enter the user account in question (the account name not showing up when it should show up or vice versa). Example:

  1. Scroll a bit further down the Query tab and find the Result Source Id text box. Enter the following result source id for People Search: B09A7990-05EA-4AF9-81EF-EDFAB16C4E31
  2. You should see the query text next to Run button update as you fill in those details.
  3. Click Run.
  4. You will see results in a friendly format under the Primary Results tab:
    image

NOTE: If you encounter an error you can copy the generated query string in step 7 and paste it into a browser.

  1. If your query run successfully, you will see username which you can expand and inspect various search properties.

  2. One of the first things you want to check is that SPS-HideFromAddressLists is not set to 1 for users that should be shown and vice versa.

Updating SPS-HideFromAddressLists value
  1. Open AD management tool
  2. Find the user you’d like to update the show/hide setting
  3. Access user properties and find msExchHideFromAddressLists
  4. Set this property to True to hide the user and False to show them.
User not showing: Verify Search Index

Ensure that the user profile is indexed:

  1. Re-crawl the user profile source in SharePoint if necessary.
  2. Run a full crawl or an incremental crawl for the search service application.
User not showing: Adjust Search Scopes (If Needed)

If the user does not appear in the “People” scope but is listed elsewhere, check the result source configuration for “People.” Verify that it targets user profiles correctly.