Skip to content

People Search - Show User Department in Search Results #3799

Answered by rlytwynec
rlytwynec asked this question in Q&A
Discussion options

You must be logged in to vote

Of course, as soon as I submitted this, I went back to the documentation and found this:

I just had to edit the search result web part, go to tab 1 of 4, click on the text in the dropdown field for "Selected properties", then type Department and hit enter. Now it's in the list!

Then I went to "Layout slots" at the top of tab 1 and clicked "Customize" I added a layout slot for Department:

Back in tab 2 of 4, I went to "Manage people fields" and updated the Secondary text value to a handlebars expression:

So instead of replacing the email address with the department, I made the line above it JobTitle - Department:

Figured I should share how I got this working in case somebody else is …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rlytwynec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant