great video. Is it possible to filter out anyone without a licence? We have several users who have synced with AD and I don't want them to appear in the directory.
Great tutorial! Thanks, was looking for this for a long time. Would be great to be able to filter on Group membership instead of Department (wich is not an option in my filter field list though). That would make this even more dynamic.
What a great tutorial!! quick question: is there a quick way to filter out people with a BLANK department or to filter only ACTIVE local users and not guest users?
Within the admin center there is a note within the manage apps at the top that says "Starting April 2, 2026, SharePoint add-ins will be retired for SharePoint in Microsoft 365 and users will no longer be able to use SharePoint add-ins. Installing SharePoint add-ins from the SharePoint Store will not be possible as of July 1, 2024." Does this make side-loading apps obsolete?
Mr. Daniel, thank you for the helpful video. I'm trying to use this query {{Department 'SYS' AND Department 'Offboard' AND Department 'Outsource' AND Department 'outsource' AND Department 'Shared-Email' AND Department 'Outsourcings' }} to exclude certain departments from being displayed. However, even after applying, I still get the list of users from the excluded department, such as 'Offboard'. Any suggestions what's going wrong? , Regards EM
Is there a way to add tags to the directory and be able to search by those tags? For instance, if we have four people who specialize in data but are not in the same department if a user types in "data" in the search bar, I would want all four people to show up. Or even have a field in the persona card that allows a quick description of that person's role, besides their job title.
Could you show us how to use these PnP Search Web parts to search information from the same page itself? I have an FAQ page in a sharepoint intranet and I want to add a search box in it, this should search for data from the same page and give us the results. Thank You
This is awewsome! Is it possible to keep the "Search for people" Web part while using a "Query template"? When using the query template to reduce the results to just one location of our company the search does not function.
Very good video easy to follow thanks. Would also like to filter out those employee whose account is no longer valid and those system admin accounts. Appreciate if u can let me know
@Daniel Anderson I have a question to ask with regards to Pnp search filter. I've chosen department, and on it shows all departments for example IT and so forth. Our company is a Charted accounting firm and there's department like Business and Advisory, Consulting, Audit, Finance, IT and EDP. How can I add in this department? Is there a way I can edit and add this departments?
Hi Daniel, thanks for your great tutorial! I have a few questions about the filter area: When I enter "Department" in my test, I don't get a list as it is in your video. Where do I have to store the work areas so that I also get a list output? Also, is there a way to have the team list show only members? We have a few guest accounts, but we don't want them to be displayed in the list. And the third and last question ;) Is there a way to assign skills to people as tags, so that they can be filtered as well? Thank you for your support! :)
i had this issue and realised that i had missed a step - in the results page config - page 1 of 4 - selected properties - make sure department is checked . Was then able to correctly add the department filter per the video
Great Video - After the Enabling steps, I "go to API access page" I am get this error: Could not retrieve Global Service Principal ID Error: Error: {} - Any idea? Thx
Figured is out is was a permission issue. My page is working great! Had another question: Currently I have the name and email displaying on the PnP search results webpart how can I add the Department?
I could use a bone. While we have only about 400 employees...4,822 are being listed. Part of the problem is that it shows termed people...can you help eliminate that occurance?
Well you need an exclusion in the search query to exclude unwanted users. Or a query that only includes current “active” employees. Is there a property that only active employees have populated?
I learned that we have an attribute called CanonicalName that it might make sense to filter for active employees. He said "users in a ispns.local..." will be active. I'm grasping straws, though, what I might type in my Query template.@@DanielAndersonAU
One of the best tutorials I have come across. Very well explained. Thank you so much for this.
So awesome! So easy to follow and works perfectly. Thank you!
Thanks this is fantastic. Was exactly what I need to move forward with building our own people search!
Glad it helped
Thank you so much for this valuable video!
great video. Is it possible to filter out anyone without a licence? We have several users who have synced with AD and I don't want them to appear in the directory.
Great tutorial! Thanks, was looking for this for a long time.
Would be great to be able to filter on Group membership instead of Department (wich is not an option in my filter field list though). That would make this even more dynamic.
What a great tutorial!! quick question: is there a quick way to filter out people with a BLANK department or to filter only ACTIVE local users and not guest users?
Very informative video. Is it possible to exclude deactivated users and users without office licenses from list ? Thanks.
Did you ever figure this one out? I just started building a company intranet and of course the first thing I need is a employee directory.
Within the admin center there is a note within the manage apps at the top that says "Starting April 2, 2026, SharePoint add-ins will be retired for SharePoint in Microsoft 365 and users will no longer be able to use SharePoint add-ins. Installing SharePoint add-ins from the SharePoint Store will not be possible as of July 1, 2024." Does this make side-loading apps obsolete?
Is there a way to filter out disabled accounts in your active directory?
Mr. Daniel, thank you for the helpful video. I'm trying to use this query
{{Department 'SYS' AND Department 'Offboard' AND Department 'Outsource' AND Department 'outsource' AND Department 'Shared-Email' AND Department 'Outsourcings' }}
to exclude certain departments from being displayed. However, even after applying, I still get the list of users from the excluded department, such as 'Offboard'. Any suggestions what's going wrong? , Regards EM
Great video. Thanks! Is there aways to add a filter by the Office Location field that is in the Azure AD users properties?
Thank you, Is there anyway to remove generic email address from the search?
Very nice introduction. Unfortunately I have no filter field for company name available. That is very sad.
good video, however. It's flawed. How do you stop users that are still in AD but the account is disabled; from showing up in the results?
Is there a way to add tags to the directory and be able to search by those tags? For instance, if we have four people who specialize in data but are not in the same department if a user types in "data" in the search bar, I would want all four people to show up. Or even have a field in the persona card that allows a quick description of that person's role, besides their job title.
Hep you can use custom user profile properties
Could you show us how to use these PnP Search Web parts to search information from the same page itself? I have an FAQ page in a sharepoint intranet and I want to add a search box in it, this should search for data from the same page and give us the results.
Thank You
I have the same question, looking to use PnP search to dynamically surface content and articles on a SharePoint site, rather than people.
This is awewsome! Is it possible to keep the "Search for people" Web part while using a "Query template"? When using the query template to reduce the results to just one location of our company the search does not function.
Yep 💯 so try something like Department:”Finance”
Great tutorial: question - is there a way to only search member people in a specific group? Thanks again
Very good video easy to follow thanks. Would also like to filter out those employee whose account is no longer valid and those system admin accounts. Appreciate if u can let me know
@Daniel Anderson I have a question to ask with regards to Pnp search filter. I've chosen department, and on it shows all departments for example IT and so forth. Our company is a Charted accounting firm and there's department like Business and Advisory, Consulting, Audit, Finance, IT and EDP. How can I add in this department? Is there a way I can edit and add this departments?
Have you had issues with this sometimes not loading new users pictures from entra?
Great video, thanks. Is it possible to filter out departments. We have a couple we do not wish to list down the left hand site, thanks.
Yep in a query -Deparment:Marketing
Very informative ✔
Is it possible to add a Query Template with Email address Contains VALUE ?
Hi Daniel, thanks for your great tutorial!
I have a few questions about the filter area: When I enter "Department" in my test, I don't get a list as it is in your video. Where do I have to store the work areas so that I also get a list output?
Also, is there a way to have the team list show only members? We have a few guest accounts, but we don't want them to be displayed in the list.
And the third and last question ;) Is there a way to assign skills to people as tags, so that they can be filtered as well?
Thank you for your support! :)
I have the same issue, would love to get the solution to this!
@@furntv607 I had the same, but as also seen in the video it helped to just type department in the field and then save
i had this issue and realised that i had missed a step - in the results page config - page 1 of 4 - selected properties - make sure department is checked . Was then able to correctly add the department filter per the video
Wow - great tutorial
Will this work in the Modern Experience for Modern SharePoint sites moving forward, or, is this for Classic Experience?
Modern, as per the name 😊
Great Video - After the Enabling steps, I "go to API access page" I am get this error: Could not retrieve Global Service Principal ID Error: Error: {} - Any idea? Thx
Figured is out is was a permission issue. My page is working great! Had another question: Currently I have the name and email displaying on the PnP search results webpart how can I add the Department?
I could use a bone. While we have only about 400 employees...4,822 are being listed. Part of the problem is that it shows termed people...can you help eliminate that occurance?
Well you need an exclusion in the search query to exclude unwanted users. Or a query that only includes current “active” employees. Is there a property that only active employees have populated?
I learned that we have an attribute called CanonicalName that it might make sense to filter for active employees. He said "users in a ispns.local..." will be active. I'm grasping straws, though, what I might type in my Query template.@@DanielAndersonAU
this is awesome, thank you
If I use filter Department, mine shows no results unfortunatly :(
Is there a way to limit the departments?
Followed this to the letter, but I dont get any results in the search. Its not finding any people
Are you sure that you selected the localpeopleresults data source?
the connection is strenge ...