Show Companyname (OrgNames) in Modern Search

Copper Contributor

Hi there, 
I build a people directory with modern search pnp and I want to display the users organisation. 
I use the SharePoint-Search Option with LocalPeopleResult as the result source and added the OrgNames as a selected property but the companyname is not showing up. 
What do I miss?

3 Replies

Hello @Lel_999987 

 

which property do you use?

 

Make sure, that you have the right user profile property: https://microsoft-search.github.io/pnp-modern-search/scenarios/Create-a-useful-People-Search/

 

Best, Dave 

Hi @David Mehr,
thanks for your feedback.

I use the OrgNames Property:

Lel_999987_0-1709282274119.png

But it seems to be empty while the department property is filled:

Lel_999987_2-1709282999689.png

 

Entra AD Profile

Lel_999987_3-1709283200287.png

 





Hello @Lel_999987 

 

make sure, that you map the correct property. 

 

Other things for User Profile properties ist this: 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