Forum Discussion
ADumith
Apr 11, 2022Iron Contributor
How can I created a People Search in SharePoint 365
Hi guys,
I've been researching because I need to create a page on my intranet for my staff and I can't find a way to do it.
This page must contain the list of employees but at the same time it must also have the option to search for people with difference criteria.
Does anyone know how to do it?
Thank you in advance,
Hi ADumith
yes, you can.
- Use a search box WebPart: https://microsoft-search.github.io/pnp-modern-search/usage/search-box/
- Then the search filters: https://microsoft-search.github.io/pnp-modern-search/usage/search-filters/
- And at least, a results WebPart, you can build your own visualization: https://microsoft-search.github.io/pnp-modern-search/usage/search-results/layouts/#people
Have fun with this WebParts 😉
Regards, Dave
Hello ADumith
i recommend you to use the PnP Modern Search WebParts. You can choose your own visualization, search for peoples and integrate filters.
You can use the Search WebParts also for other search scenarios.
Source: https://microsoft-search.github.io/pnp-modern-search/
Example: https://github.com/YannickRe/spfx-msgraph-peoplesearch
Regards, Dave
- ADumithIron Contributor
Hello!DaveMehr365
Thanks for reply me.
I was looking at the project but what I'm looking for goes further, actually I need a people page where the filters can be applied by the visiting user.
For example, location or department, etc.
Thanks in advance,
Hello ADumith
have you see the people layout?
https://microsoft-search.github.io/pnp-modern-search/usage/search-results/layouts/
You can use profile properties from the current user or you can use properties as filter.
Regards, Dave