All Projects → YannickRe → spfx-msgraph-peoplesearch

YannickRe / spfx-msgraph-peoplesearch

Licence: MIT License
Show and search users from your organization with an SPFx web part, through Microsoft Graph.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to spfx-msgraph-peoplesearch

powershell
PnP PowerShell
Stars: ✭ 326 (+1024.14%)
Mutual labels:  microsoft, microsoft-graph
ForzaHorizonFix
A simple fix for Forza Horizon 4 and Forza Horizon 5 crashes
Stars: ✭ 20 (-31.03%)
Mutual labels:  microsoft
Facial-Recognition-Attendance-System
An attendance system which uses facial recognition to detect which people are present in any image.
Stars: ✭ 48 (+65.52%)
Mutual labels:  microsoft
Activity-Recognition-CovMIJ
Skeleton-based method for activity recognition problem
Stars: ✭ 13 (-55.17%)
Mutual labels:  microsoft
sccm
Microsoft System Center Configuration Manager
Stars: ✭ 21 (-27.59%)
Mutual labels:  microsoft
windows-Credential-Provider-library
This repository will be updated with all the examples and links that I can find with relevant knowledge & information about CP in MS Windows vista up to version 10.
Stars: ✭ 122 (+320.69%)
Mutual labels:  microsoft
alfred-microsoft-onenote-navigator
Use Alfred to browse through your Microsoft OneNote notebooks, section groups and sections and then jump to them instantly.
Stars: ✭ 52 (+79.31%)
Mutual labels:  microsoft
iot-curriculum
Hands on labs and content for students and educators to learn and teach the Internet of Things at schools, universities, coding clubs, community colleges and bootcamps
Stars: ✭ 110 (+279.31%)
Mutual labels:  microsoft
GW-BASIC
Assembling Microsoft GW-BASIC from 1983, with MASM or JWasm • "pre-release" binaries at https://github.com/tkchia/GW-BASIC/releases • source mirror at https://gitlab.com/tkchia/GW-BASIC • fork of https://github.com/dspinellis/GW-BASIC
Stars: ✭ 55 (+89.66%)
Mutual labels:  microsoft
mdb2sqlite
Conversion tool used to convert microsoft access database to sqlite.
Stars: ✭ 79 (+172.41%)
Mutual labels:  microsoft
microsoft-download-link-archive
Archive of various Microsoft Download Links.
Stars: ✭ 15 (-48.28%)
Mutual labels:  microsoft
ATKSpy
this repository is a python package that supports SOAP interface to communicate with the Microsoft ATKS
Stars: ✭ 27 (-6.9%)
Mutual labels:  microsoft
script-samples
A sample gallery of scripts to manage all things Microsoft 365.
Stars: ✭ 56 (+93.1%)
Mutual labels:  microsoft
azure-functions-swift
Azure Functions in Swift! Purely in Swift!
Stars: ✭ 86 (+196.55%)
Mutual labels:  microsoft
CVE-2020-0688-Scanner
Quick tool for checking CVE-2020-0688 on multiple hosts with a non-intrusive method.
Stars: ✭ 38 (+31.03%)
Mutual labels:  microsoft
microsoft teams clone
Microsoft Teams Clone is a Video conference application with a rich integrated chat experience, to connect with friends,family & colleagues. Developed as a redesign of Microsoft Teams during my menteeship at Microsoft Engage 2021
Stars: ✭ 52 (+79.31%)
Mutual labels:  microsoft
Osiris
Reverse engineering suite for Halo 5: Forge
Stars: ✭ 40 (+37.93%)
Mutual labels:  microsoft
WinHub-98
A modern-looking userstyle for GitHub
Stars: ✭ 59 (+103.45%)
Mutual labels:  microsoft
teams-call
Shell script to detect when you're in a Microsoft Teams Call. Supports Linux and macOS.
Stars: ✭ 23 (-20.69%)
Mutual labels:  microsoft
FlaUIRecorder
UIAutomation test recorder for using with FlaUI library.
Stars: ✭ 23 (-20.69%)
Mutual labels:  microsoft

Microsoft Graph People Search Web Part

Summary

Show and search users from your organisation, through Microsoft Graph. Search results show as a nice People Card, and display the Live Persona Card on hover.
The web part can be configured with a static search query, show a search box or accept a search query through a Dynamic Data connection to further filter the displayed results. Dynamic data can by default come from the Microsoft Search search box or the Page Environment. You could also use the Search Box Web Part provided by the PnP Modern Search Web Parts.

directory

As a code sample this clarifies the following concepts:

  • Connecting to Microsoft Graph using a SharePoint Framework web part
  • Implement efficient paging through large collections in Microsoft Graph
  • Use of $select, $filter, $orderby, $count and $search query parameters for Microsoft Graph
  • Implement batch requests to Microsoft Graph for fetching multiple resources in one network request

More information

I wrote a blog post covering more if the inner workings, you can find it at SPFx People Search web part based on Microsoft Graph.
Additionally, this web part has also been demoed on the PnP Community call of September 10th, 2020.

Used SharePoint Framework Version

drop

Applies to

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

Either download the latest release OR build it yourself:

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp build
    • gulp bundle --ship
    • gulp package-solution --ship

Install the package:

  • Add to AppCatalog and deploy
  • Assign 'User.Read.All' delegated permissions to the 'SharePoint Online Client Extensibility Web Application Principal', with CLI for Microsoft 365 or PnP PowerShell

CLI for Microsoft 365

m365 login
m365 spo serviceprincipal grant add --resource 'Microsoft Graph' --scope 'User.Read.All'

PnP PowerShell

Grant-PnPTenantServicePrincipalPermission -Scope "User.Read.All" -Resource "Microsoft Graph"

Acknowledgements / Inspiration

There are many web parts that aim to do the same thing, but they either use SharePoint Search as data store or they render their results in a completely different way. It's impossible to acknowledge all sources of inspiration to this solution, but I do want to give a shout out to two projects (and their contributors) that were foundational to deliver this solution as quickly as I did:

React Directory Web Part

The foundation on which I started building my own solution. This web part can be downloaded from the SharePoint Framework Client-Side Web Part Samples & Tutorial Materials

Thanks to

PnP Modern Search Web Parts

These web parts were an enormous inspiration on code structure and implementation approach. Their codebase is very impressive, and a lot of the code in this web part is a literal copy paste from them. You can find more on the PnP Modern Search Web Parts page.

Thanks to

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].