Forum Discussion
Lephas
Feb 27, 2024Copper Contributor
PNP Modern Search People, Department and Office Missing from Propertyfield
This is driving me crazy - i am getting into PNP Modern search and followed some tutorials.
However unlike the Video I cant select Department or Office in the Property Field on my PNP Search Results:
I read on other discussions that it could be connected to some wrong settings in the Sharepoint Search but i can't find any fault in there:
Search Settings Sharepoint:
What am i missing?
Hello Lephas
have you seen this scenario? https://microsoft-search.github.io/pnp-modern-search/scenarios/Create-a-useful-People-Search/
Type in the property in the filed "selected fields" and press enter, or here an article about people properties: https://www.techmikael.com/2014/11/how-to-make-sure-user-profile.html
"You may also map the crawled property to the managed property ContentsHidden which is already set to be included in the PeopleIdx."
Best, Dave
3 Replies
Sort By
Hello Lephas
have you seen this scenario? https://microsoft-search.github.io/pnp-modern-search/scenarios/Create-a-useful-People-Search/
Type in the property in the filed "selected fields" and press enter, or here an article about people properties: https://www.techmikael.com/2014/11/how-to-make-sure-user-profile.html
"You may also map the crawled property to the managed property ContentsHidden which is already set to be included in the PeopleIdx."
Best, Dave
- LephasCopper Contributor
DaveMehr365 Thank you that was it! Not intiutiv at all having to Type the Fieldname by myself.
Now im trying to struggle to add the CompanyName Field for the User. Even though the Field is named CompanyName in AzureAD it seems empty in the search result (same goes for MobilePhone). How can you find out the correct name?
Hello Lephas
you can check the synchronized user profile properties in SharePoint Admin Center > more features > User profiles: https://<TENANT>-admin.sharepoint.com/_layouts/15/TenantProfileAdmin/ManageUserProfileServiceApplication.aspx
You can see all the existing User profiles under Manage User Profiles. As example search a profile and edit to show all the details (Please note that it is very slow), the database icon means, that this property is synchronized from Micosoft Entra ID (former AAD):
Under Managed User Properties you will see the internal name from a user profile property:
In your Search Admin Center you can see, that a Managed Property will be available for the People:Department User Profile Property:
You can use this Managed Property in your search, as example here as filter:
And here you can see a list with all synced propierties into SharePoint user profiles: https://learn.microsoft.com/en-us/sharepoint/user-profile-sync?WT.mc_id=DX-MVP-5004845
Best, Dave