Modified on: Wed, 16 Jun, 2021 at 6:23 PM
In this article, we will show you how to display people from a specific department using People Search connection type.
Before we begin:
- You are using the 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:
You may also use All People filter:
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:
Change Executive Management to the department you would like to display.
If you use All People as a filter, you will need to add refinement filters to the query string. It will only consist of a department filter and look similar to this:
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):
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!
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.