Hello,
I have a custom list that I am using to create a contacts list. It has a people picker column and then a single line text column. In my first solution, I was able to use a rest call to get the attributes I need for the person (Name, job title, department and email) from the people picker field. All works well in my JS/HTML solution. REST call below:
/_api/web/lists/getbytitle('Key Contacts')/items?$select=*&$select=Person/Title,Person/JobTitle,Person/EMail,Person/Department&$expand=Person/ID
However! I would like to use a content search web part and a display template instead but I'm unclear as to how I can use managed properties to extract the necessary data from the People picker column. In my current Search Schema I can see crawled properties like People:SPS-JobTitle, People:SPS-Department and right now People:SPS-JobTitle is mapped to the JobTitle managed property. This property is searchable, queryable, retrievable and refinable. But if i drop JobTitle into the managed property settings of my content search web part, nothing happens. So in summary, I'm trying to figure out how to use a content search web part to display information like picture, name, job title, etc, from a people picker field.