In our current SP2013 project, we're using AD Import to import data from the AD to the user profiles. Now I want to add some more information from the user profile to the search results of the people search. So far I've successfully changed the display template for the people item to include the WorkPhone for example.
Now I want to include the Office (room) into the result. When looking at the properties of an AD user, this is the field General tab -> Office.
The AD import to SharePoint apparently works, because the user profile contains the value I entered in the AD. Here this is in the property "Office" (User Profile Service Application -> Manage User Properties).
But now I'm not sure how this property can be mapped to the SP2013 search (to a managed property which I can then include in the display template).
In the Search Service Application -> Search Schema, there is no crawled property "Office", and also no managed property of that name. There is a crawled Property "People:Office" which is mapped to the managed properties "OfficeNumber" and "ContentsHidden". I included both in the display template, but the template seems to find no values for them (I'm logging the values found in ctx.CurrentItem to the javascript console, but there are no values for either property, in fact, neither appear as properties on the ctx.CurrentItem object).
There is also a managed property "BaseOfficeLocation" which maps to the crawled property "People:SPS-Location" but this is not the one I want.
So, my question is: Does anyone know how the property "Office" in the user profile service application is mapped to the search managed properties?