Include additional User Profile fields in the People Directory search
Asked by Alicia Miller:

Hi All,

I would like to expand the elements that can be searched for in the Confluence People Directory.

For example, it would be really useful to be able to search the Department field (eg. "Marketing") in the People Directory search box and have it return all people with that set in their Department field in their profile.

Any ideas how to do this?

Thanks,

Alicia


Answers:
author: Justin Justin
body: Alicia, this search any field capability is now in the v4.0.0 version of *[Enterprise Directory and Org Chart for Atlassian Confluence](http://www.appfusions.com/display/EDIRC)* add-on. Here's a screenshot. Thanks for the great feedback; you influenced this.

NewEntDirectoryAppFusions.png  
[](https://community.atlassian.com/t5/Confluence-questions/Include-additional-User-Profile-fields-in-the-People-Directory/qaq-p/233968?attachment-id=298){#link_11931121d6892d}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/39674/1/NewEntDirectoryAppFusions.png){#display_11931121d6892d_0}


author: Ellen Feaheny [AppFusions]
body: Alicia -

AppFusions' Enterprise Directory and Org Chart allows you to expand based on the fields in your LDAP/AD (also can include images from AD).

Also you can sort by departments, names, etc. and place lookups or org charts also In independent Confluence pages (via additional macros).

When installed, the "Directory" is natively available in the page header options.

Here's a "glimpse" video :

[http://www.youtube.com/watch?v=EELtQZsZr2s\&sns=tw](http://www.youtube.com/watch?v=EELtQZsZr2s&sns=tw)

More info at [http://appfu](http://www.appfuions)sions.com or request eval at [info@appfusions.com](mailto:info@appfusions.com)

comments: author: Alicia Miller
body: Hi Ellen,I am trialling the appfusions plugin at the moment. It still requires the user to decide what element the are searching for. I would just like to be able to expand the general confluence People Directory search to encompass all elements from the user profiles. Hmm. Thanks,Alicia


author: Justin Justin
body: Alicia - AppFusions is about to release this feature you have requested - email info@appfusions.com


author: Davin Studer
body: The [User Profile for Confluence](https://marketplace.atlassian.com/plugins/de.communardo.confluence.plugins.userprofile) add-on gives you this functionality.

**Update for screenshot:**

image2014-10-17 10:48:37.png  
[](https://community.atlassian.com/t5/Confluence-questions/Include-additional-User-Profile-fields-in-the-People-Directory/qaq-p/233968?attachment-id=8814){#link_119311374c1aa2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/39666/1/image2014-10-17%2010%3A48%3A37.png){#display_119311374c1aa2_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Include-additional-User-Profile-fields-in-the-People-Directory/qaq-p/233968?attachment-id=8815){#link_119311374c1aa2_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/39666/2/image2014-10-17%2010%3A48%3A23.png){#display_119311374c1aa2_2}

comments: author: Alicia Miller
body: Hi,Yeah I have this installed so I am a bit familiar with it. The only thing though is I just don't think my users (mostly non-tech) will embrace the need to specify the element that they are searching for. For instance, somebody might want to search for everyone on the IT Service Desk... They will want to just input the word "Service" and have every profile that includes the word "Service" listed. Not: "Department:Service" or "Position:Service".So I want to know how to expand what the search of the People Directory is looking at... but not sure how to do it :-/


author: Davin Studer
body: Yeah our users had the same issue. So, what I did was I hijacked the People Directory page by putting some JavaScript in the Custom HTML section of Confluence Admin. The JavaScript first checks to see what page the user is currently on. If it is the people directory then it hides the default search form (does not delete it). Then the script builds out a form with the fields that we want and a submit button. When the user clicks the submit button the script creates the appropriate search syntax and puts the value into the hidden search field and programatically clicks the hidden search button. I give and example on this page.<https://answers.atlassian.com/questions/8629205/answers/9377913>


author: Davin Studer
body: See the update on my above post for a screenshot of what ours looks like. I unhid the default search box so you could see kinda what we are doing.


author: Alicia Miller
body: That's pretty good David, thanks for the excellent information. What I really want to know though is how to extend the results of that quick search box for the people directory to search more fields than just First Name, Last Name, and Username. Any ideas how to modify that directly?


author: Davin Studer
body: You have to specify the field(s) you are searching. An example search would be ...FirstName:Joe OR LastName:Joe OR Position:Joe OR Department:JoeI realize your users don't want to type that. This is reason for creating your own form that will put the search terms into the original form in the format you want. If you want just a simple form that looks just like the original(with on text field) you can use the example on the below link. Line 44 is what you would change. You would just set it to create the appropriate search string based on what you typed into the form generated by the javascript.<https://answers.atlassian.com/questions/8629205/answers/9377913>


Tags: confluence-administration