Index metadata from a "Person or Group" column
Index metadata from a "Person or Group" column
When a SharePoint Online list contains a column of type Person or Group
, the SharePoint Online source extracts two pieces of metadata for the users specified in the list items:
-
The value displayed in the SharePoint Online column
-
The user’s email address
For example, consider a SharePoint Online list with an Assignee
column of type Person or Group
.
The Assignee
column displays the value of the Name
field, which shows the user’s first and last name.
If you index this list, Coveo’s View and map metadata subpage will display values extracted as Assignee
and Assignee_email
metadata, as shown on the right below.
Assignee column in SharePoint Online list | Source crawled metadata |
---|---|
If you want to extract only the assignees' first names, you need to change the field displayed in the SharePoint Online list column to First name
.
The field value displayed in the SharePoint Online column is determined by the Show field option in the list settings.
To display another field in the SharePoint Online list Assignee column
-
In your SharePoint Online site left menu, select the list, and then click Settings > List settings.
-
In the Columns section, click Assignee.
-
In the Show field dropdown menu, select the desired SharePoint field, and then click OK. For example, you could select
First name
. -
Reindex your SharePoint Online site.
-
Rebuild your SharePoint Online source.
-
On the Sources (platform-ca | platform-eu | platform-au) page, click your SharePoint Online source, and then click More > View and map metadata.
-
You’ll now see that the value extracted for the
Assignee
metadata corresponds to the one selected in the Show field dropdown menu. -
If you haven’t already, index the
Assignee
andAssignee_email
metadata by mapping them to fields. For example, if you selectedFirst name
in the Show field dropdown menu, you could create auser_first_name
field for theAssignee
metadata and auser_email
field for theAssignee_email
metadata, respectively. -
Rebuild your SharePoint Online source.
-
In the Content Browser (platform-ca | platform-eu | platform-au), confirm that the fields for your SharePoint Online list item are populated correctly.