Display Groups (favorite / joined / visited) in SharePoint Modern web part

%3CLINGO-SUB%20id%3D%22lingo-sub-91445%22%20slang%3D%22en-US%22%3EDisplay%20Groups%20(favorite%20%2F%20joined%20%2F%20visited)%20in%20SharePoint%20Modern%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91445%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20a%20Modern%26nbsp%3BSharePoint%26nbsp%3Bsite%20we%20want%20to%20display%20Groups%20related%20to%20the%20user.%20When%20I%20open%20Outlook%20on%20the%20Web%20I%20see%20favorite%2C%20joined%20and%20visited%20groups%2C%20can%20(some%20of)%20these%20group%20categories%20be%20displayed%20in%20SharePoint%20Online%20Modern%20pages%20also%20in%20an%20SPFx%26nbsp%3Bweb%20part%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20a%20lot%20of%20example%20regarding%20Office%20Group%2C%20Microsoft%20Graph%20and%20SPFx%26nbsp%3Bweb%20parts%2C%20but%20haven't%20seen%20any%20examples%20regarding%20Groups%20listed%20in%20a%20SharePoint%20Web%20Part.%20So%20being%20able%20to%20prove%20it%20for%20a%20POC%20I'm%20looking%20for%20a%20simple%20example%20that%20lists%20groups.%20Can%20someone%20put%20me%20in%20the%20direction%20e.g.%20how%20to%20display%20a%20simple%20list%20of%20Groups%20I%20Joined%20or%20my%20Favorite%20Groups%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20of%20Groups%20displayed%20in%20Outlook%20on%20the%20Web%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17919i9E947C31E6EAD80D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Groups%20in%20Outlook%20on%20the%20Web.png%22%20title%3D%22Groups%20in%20Outlook%20on%20the%20Web.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-91445%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-91455%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20Groups%20(favorite%20%2F%20joined%20%2F%20visited)%20in%20SharePoint%20Modern%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91455%22%20slang%3D%22en-US%22%3EI%20think%20the%20WebPart%20you%20are%20looking%20for%20simply%20does%20not%20exist.%20You%20can%20find%20a%20good%20overview%20of%20available%20sample%20WebParts%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fveenstra.me.uk%2F2017%2F07%2F18%2Foffice-365-spfx-samples-a-complete-overview%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fveenstra.me.uk%2F2017%2F07%2F18%2Foffice-365-spfx-samples-a-complete-overview%2F%3C%2FA%3E%20and%20one%20of%20the%20sample%20WebParts%20is%20a%20good%20example%20of%20how%20you%20can%20%22query%22%20the%20Graph%20to%20display%20information%20around%20current%20user%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-officegraph%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-officegraph%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

In a Modern SharePoint site we want to display Groups related to the user. When I open Outlook on the Web I see favorite, joined and visited groups, can (some of) these group categories be displayed in SharePoint Online Modern pages also in an SPFx web part?

 

I've seen a lot of example regarding Office Group, Microsoft Graph and SPFx web parts, but haven't seen any examples regarding Groups listed in a SharePoint Web Part. So being able to prove it for a POC I'm looking for a simple example that lists groups. Can someone put me in the direction e.g. how to display a simple list of Groups I Joined or my Favorite Groups?

 

Example of Groups displayed in Outlook on the Web:

Groups in Outlook on the Web.png

1 Reply
I think the WebPart you are looking for simply does not exist. You can find a good overview of available sample WebParts here: https://veenstra.me.uk/2017/07/18/office-365-spfx-samples-a-complete-overview/ and one of the sample WebParts is a good example of how you can "query" the Graph to display information around current user: https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-officegraph