Forum Discussion
How can I created a People Search in SharePoint 365
- Apr 12, 2022
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
- ADumithApr 12, 2022Iron 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,
- DaveMehr365Apr 12, 2022MVP
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
- ADumithApr 12, 2022Iron Contributor
- RobElliottApr 12, 2022Silver Contributor
ADumith you should look at doing this with Power Apps as you could have a filter box that filters on the department, job role, location and other info:
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)- ADumithApr 12, 2022Iron Contributor
This is very interesting, however I have a problem with it. When I collect the users from the AD, I even get the service accounts. So I decided to create a workflow to extract only the users and how many are active, but I haven't been able to get the flow to work either.
Can you help me solve it?
Thanks in advance.