I cannot find how to show the photos and names of the members of a group on a page. Any ideas?
Thanks, Jan
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI cannot find how to show the photos and names of the members of a group on a page. Any ideas?
Thanks, Jan
Assuming you are using Modern SharePoint as you've tagged sharepoint-online.
Modern Pages don't yet have a web part to show the members of a group, it currently only exists for an individual person record.
Now this is a bit of a jury-rigged 'WD40 and duct tape' solution but what you could do is thus:
Set up some code (could be JavaScript in a browser, a C# Azure solution, or a Powershell CSOM script) that gets a list of all the group members (the specific code used would differ depending on whether you're talking about an Azure AD, SharePoint or Unified group)
The code then extracts all the relevant info you need for that account (picture URL, job title, whatever)
The code would then dump this information into a SharePoint list on your site
Now you can add a web part that shows an embedded view of that list
Obviously remember to set up the code that's doing the work so it runs regularly, or if possible on an event trigger for when the groups membership is updated (unsure if this functionality exists - I'm really more of an OOTB developer).