How can we help you today?

How to Hide External Users and People Without Emails Using People Search Connection Type

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.


  • Modern page:

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. 



  • Classic page:

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:

WorkEmail:ends-with("mycompany*OnMicrosoft*com")


Change mycompany*OnMicrosoft*com to 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

You can click Preview button to check how it will be displayed on your page.



Then, click Insert/Update button and save the page. 



That's it. Happy connecting!


Related articles:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 13 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more