Display Profile Photo on Person or Group Columns in SharePoint Online

Do you know you can display the profile picture in the Person column in Modern SharePoint Online Lists and Libraries? Well, Here is how it works:

  1. Navigate to your SharePoint Online List >> Click on “Add column” >> Choose “Person”.
  2. In the “Create a column” pane, Set the name for the column, and other parameters. Scroll down and set “Show profile photos” to “Yes” and click on “Save”.sharepoint online show profile photos in person or group column

That’s all! Once the list is populated, this is how it looks:

profile picture in person or group column

You can also edit existing columns and enable the “Show Profile Photos” option. Please note, this works only in modern lists and libraries when you click on the “Add column” link from the list page (and not from list settings >> Create a column).

PnP PowerShell to Enable “Show profile photos” for Person or Group Column

Here is the PowerShell way of turning this flag ON.

#Parameters
$SiteURL = "https://crescent.sharepoint.com/sites/PMO"
$ListName = "Projects"
$FieldInternalName ="ProjectManager"

#Connect to the Site from PnP PowerShell
Connect-PnPOnline -Url $SiteURL -UseWebLogin

#Set the People Picker Field Settings
Set-PnPField -List $ListName -Identity $FieldInternalName -Values @{"UserDisplayOptions"= "NamePhoto"}

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. Passionate about sharing the deep technical knowledge and experience to help others, through the real-world articles!

5 thoughts on “Display Profile Photo on Person or Group Columns in SharePoint Online

  • Can I just added a column with just profile image and no name to the Sharepoint list?

    Reply
  • Hi there is there any way to make the column show an image if the profile picture is there, and if it is an external source, or just a name (not a contact/email) show the name or a company logo instead?

    Reply
  • Hi,
    Is there any way to do that using PnP?
    I can’t manage to find it on the web 🙁
    thanks
    Julien

    Reply
    • You have to set the “UserDisplayOptions” = “NamePhoto”. Post has been updated with the PowerShell script!

      Reply
      • Awesome, it works like a charm. Thanks a lot!!

        Reply

Leave a Reply

Your email address will not be published. Required fields are marked *