Skip to main content

Define Fields

By default, People Hub will display the following fields from the SharePoint User Profiles:

  • Profile Picture
  • Name
  • Title
  • Department
  • Office
  • Work Phone
  • Email

Additional fields can be added either from existing properties or by a custom property.

People Hub Overrides

Define fields

If the property already exists in the User Profile Properties we can use the overrides in the People Hub webpart to display these fields. In this example I want to bring through the ‘Mobile’ field, using the SharePoint data source. The below overrides are required to be added in the People Hub webpart settings under ‘Custom overrides’

Object

{
"cellPhone":
{
"userMap": "cellPhone",
"sourceMap": "MobilePhone",
"label":"Mobile",
"directoryDisplayOrder": 7
},
"Intercom":
{
"userMap": "Intercom",
"sourceMap": "OWS_INTERCOM",
"label":"Intercom",
"directoryDisplayOrder": 8
},
"department":
{
"directoryDisplayOrder": false
}
}

Note: If using the graph data source, the sourceMap field should be "mobilePhone", not "MobilePhone".

Attributes

labelCustom Property Internal Name
userMapuserPropMapping
sourceMapSearchResultKey
labelDisplay Name in People Hub
directoryDisplayOrderOrder it displays in Directory. Set to false to hide column
facetDisplayOrderOrder it displays in facet filter in directory. Set to false to hide column
orgChartDisplayOrderOrder it displays in Organisation Chart. Set to false to hide column

Inbuilt Fields

Microsoft Graph as the datasource

Microsft provides a detailed list of properties available for you to bring through from Microsoft Graph.

https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties

SharePoint Search as the datasource:

Below is a list of standard/inbuilt fields within Microsoft 365 you can access. You can also create your own fields within the User Profile Database and use SharePoint search properties.

Custom Property Internal NameuserMapsourceMap
pictureUrlpictureUrlAccountName
profileUrlprofileUrlOriginalPath
departmentdepartmentDepartment
officeofficeofficenumber
cellPhonecellPhoneMobilePhone
emailemailWorkEmail
accountNameaccountNameAccountName
managermanagerManager
lastNamelastNameLastName