In this article we will show you how to hide external users and people without emails using People Search connection type. Only users with emails of current domain will be displayed.
Before we begin:
- You are using People Search connection type.
- You have external users or users without emails that you would like to hide from the People Search list.
- The crawled properties are created by SharePoint Search engine during the scheduled crawling process. It means that after query modification it might take some time (up to 8-24 hours) for the solution to start working if everything is alright from the SharePoint side.
Step 1: Add a ShortPoint Design Element
You can choose and add any ShortPoint Design Element you want. ShortPoint Design Elements can be easily added to your pages using ShortPoint Page Builder.
You can start with adding a ShortPoint web part to your page by clicking the plus sign and selecting ShortPoint from the list of the web parts.
1. Choose the Insert tab in the Ribbon.
2. Click the blue Insert button.
Then, select the chosen ShortPoint Design Element from your Page Builder grid. For the purposes of this article we are using ShortPoint List.
Step 2: Connect your Design Element to People Search
Switch to the Connect tab and select the People Search connection type.
Choose the filter you would like to apply from the drop-down of the relevant field. For the purposes of this article we are choosing Member Of filter:
Type the distribution list(s) name and choose the necessary one(s) in the Select groups field:
Step 3: Modify the search query
Scroll down a bit and Enable Advanced Query option:
Now you will need to modify the following query based on your requirements:
In the refinementfilters part of the query string add the following parameter:
Changeto the domain of your organization.
After the query is updated, click the Connect button and wait for the connection to load.
To complete the connection, we need to map the relevant fields.
Please proceed to the next step.
Step 4: Map the items
Switch to the Items/Content tab:
Map the corresponding properties to display on your page. Click the chain icon and choose the option you would like to map from the drop-down.
In this example we are mapping WorkEmail option to get all people from the current domain (no external users or people without emails will be displayed):
Note: Check our ShortPoint Connect: Basic Tutorial for more information on how ShortPoint Connect works.
Step 4: Click Insert/Update and save the page
That's it. Happy connecting!