The People Directory provides a list of all users in your Confluence system. If you need to disable the People Directory set the following system properties on your application server command line:
-Dconfluence.disable.peopledirectory.anonymous=true
-Dconfluence.disable.peopledirectory.all=true |
|
This workaround will prevent the People directory from appearing on the dashboard, but if you navigate to the profile of a user, and then click on the "People" in the breadcrumb link (Dashboard >> People >> FullName >> Profile) or you go to the URL directly <CONFLUENCE_INSTALL>/browsepeople.action, you will be able to access the people directory.
To workaround this, set up Apache webserver in front of confluence and redirect requests to this URL.
To remove the link on the dashboard:
This only applies to Confluence 2.5.2 to 2.9.x. Confluence 2.10.x or later only needs to configure system properties using the above.
Edit the <confluence-install>/confluence/decorators/global.vmd:
Comment out line 37:









50 Comments
Hide/Show CommentsJul 30, 2007
François Nonnenmacher
Can this be done for a specific group (not anonymous users)?
Jul 30, 2007
Guy Fraser (Adaptavist)
Not currently, but if http://jira.atlassian.com/browse/CONF-8539 was implemented it would be easier for plugin developers to provide more flexible versions of the People Directory.
Oct 01, 2007
Mark
I'm running this on windows, where do these commands go exactly?
Oct 02, 2007
Tony Cheah Tong Nyee
Hi Mark,
If you are running a Confluence standalone edition, this can be done by editing the
setenv.batfile which is available in the${catalina.home}/bindirectory.You may be interested to look at the documentation as outlined here as a reference on how to add the additional parameter to the
setenv.batfile.Hope the information helps.
Cheers,
Tony
Feb 11, 2008
Carl Thoreson
OK, so I added the line to my Setenv.bat file so that the command line now looks like this:
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -Dconfluence.disable.peopledirectory.anonymous=true
(Line has wrapped. The above is all one line.)
However, the people directory is still alive and well for anonymous.
I also removed any links I could find related to people directory in the decorators/global.vmd file but the people directory is still available on the dashboard.
Can anybody tell me what I am doing wrong?
Thanks,
Carl
Feb 12, 2008
Choy Li Tham
Hi Carl,
Could you please raise a support request in the following Issue tracker so that we can further investigate the problem from there:
Regards,
Choy Li
Dec 19, 2007
Ulrich Trampe
This setting does not hide nor disable the People Directory!
It simply prevents anonymous users from browsing the directory. But they can still access all the user profiles, if they somehow find or guess the link to them.
The dashboard itself lists links to recently updated user profiles, another option is using Google.
Jan 11, 2008
Steffen Stundzig
hi ulrich,
do you have a solution for hiding the recently updated links for the user profiles?
regards
Mar 22, 2008
Ulrich Trampe
I don't think this is possible.
What you can do is create a Custom Dashboard. On this dashboard, you can exclude the user profiles from the recently updates list. So you will not see them by default.
The weird thing is, when you "hide" the peoples directory as described here, and then try to access the peoples directory, it will link you directly to the original dashboard and show up all the recently updated user profiles.
In addition, you can prevent search engine indexing on your site.
Ulrich
Mar 11, 2008
Peter Lunn
Forgive me as someone relatively new to Confluence, but this seems a very clunky of disabling a feature that shouldn't be enabled (to anonymous users) anyway. The default should have the People Directory hidden - surely?
At the very least I would have anticipated being able to set permissions on this area via the UI not have to do it via a command line. Please can this be included as a change request?
Mar 17, 2008
Ming Giet Chong
Hi Peter,
People Directoryprovides a list of all users in your Confluence system. Disabling thePeople Directorycan avoid anonymous user accesses through the company's people directory. Additionally, it can be totally disabled to avoid any users access it. Therefore, user can have the options to hide/disable it.I would suggest you to raise an improvement request at our issue tracker. Thanks.
Regards,
MG
Nov 19, 2008
Anonymous
I totally agree to the above remark. That is very strange than in such an expensive commercial product we see suggestions to use command line, comment piece of code or even "unjar" and edit files. This should have been obvious to any developer without even saying that feature like this has to be configurable from user interface and it should be available before you realease the software.
Mar 11, 2008
Tom Moore
In Confluence 2.7.2, editing the global.vmd file in standalone confluence (//confluence/decorators/) does not remove the link to the people directory from the front page. I have even deleted the entire stanza instead of just commenting it out and it's still there. Any idea where confluence is still picking this up? I've stopped and restarted multiple times.
Mar 17, 2008
Ming Giet Chong
Hi Tom,
I would suggest you to raise a support ticket at our issue tracker for further investigation to this issue:
Regards,
MG
Apr 01, 2008
hermanns
Hi Tom,
I ran into this once. My problem was that I had defined a customized Layout under:
Dashboard > Administration > Look and Feel > Edit Site Layouts: Global Layout
BR,
Klaas.
Apr 01, 2008
Tony Cheah Tong Nyee
Hi guys,
To my understanding, modification made to the Global Layout via the Administration console as well as the
global.vmdfile available in /decorators directory would take effect if the Confluence instance is configured to use the "Default Theme". If other themes is used instead, you would have to modify the global layout files that relates to the specific theme.If the "Default Theme" is used and the modification does not take effect, feel free to raise a support request to reflect the problem that you are seeing.
Cheers,
Tony
Mar 26, 2008
David Perez
We are running Confluence 2.7. The people directory was showing without any issues. We have not identified any changes in the configuration but now the people directory is not showing anymore. To be precise, only two users are now showing and the rest are hidden. Any hints how to go back to the previous configuration? We just want all users to appear in the People Directory.... Thanks.
Mar 27, 2008
Choy Li Tham
Hi David,
Please create a support ticket at the following issue tracker and we will verify the problem from there:
Regards,
Choy Li
May 05, 2008
Anonymous
The profiles still show in the "Recently Updated" list in the dashboard whenever they are modified/created. To hide them, you need to change the following line in decorators/global.vmd:
$helper.renderConfluenceMacro("
Recently Updated
Mike Cannon-Brookes
Anonymous
Bill Arconati [Atlassian]
Matthew Erickson [Atlassian]
Anonymous
Sarah Maddox [Atlassian Technical Writer]
Simon Tower [Atlassian]
simon.loader@plumbee.co.uk
Anonymous
Jens Melgaard
Anonymous
Jens Melgaard
and add some filter that takes them out. I've found "space=*" to work for that.
Of course if you're using any theme other than the default, you'll need to do that change inside the corresponding .jar file, which is painful but doable.
Salut,
Jordi.
Aug 12, 2008
Andrew Frayling
Tip for removing the People Directory from the Confluence Classic theme:
You need to extract <Confluence Home>bundled-plugins/confluence-classic-theme-2.0.jar, edit the global.vmd in that file, repackaged and redploy.
You also need to delete/move atlassian-bundled-plugins.zip in <Confluence install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup as otherwise Confluence will re-deploy the original version at every startup and overwrite the changes you made to confluence-classic-theme-2.0.jar.
Thanks to Atlassian support for the help.
Nov 19, 2008
Imran Aziz
This does not work, I have also tried it set this up for the windows service and it still does not disable the people directory. Although I can hide the people directory in my custom theme plugin, and alter the recently updated call on the dashboard but still people can reference http://dommain.com:8080/peopledirectory.action and view the directory and search across it. I suggest please kindly remove these instructions from the help files since it wastes peoples time without getting anything out of it.
I am going to remove the peopledirectory.action and browsepeople.action by using conveyor library and put a place holder message there.
Dec 03, 2008
Arie Murdianto
Hi,
Appending the following parameter on your setenv.bat, should disable browse browsepeople.action or peopledirectory.action. I have tried this on several Confluence version, especially in Confluence 2.9.2. If you want to go to Confluence source, you need to disable (comment out) the following things:
Cheers,
Dec 05, 2008
Anonymous
Hi,
when we click people directory link is their is any option available to sort out the people in alphabetical order?
Thanks
Dec 09, 2008
Giles Gaskell [Atlassian Technical Writer]
Hi there,
For Confluence 2.10, the People Directory is displayed in alphabetical order and this is not configurable.
Best regards,
Giles Gaskell
Technical Writer
ggaskell@atlassian.com
ATLASSIAN - http://www.atlassian.com
Dec 23, 2008
Jeremy Largman [Atlassian]
In some cases it may be required to rebuild the war file after making this change.
Feb 06, 2009
Andrew Frayling
I've successfully removed the People Directory from the Dashboard and the Browse menu, and have disabled for all users, but a link is still showing in the breadcrumb at the top of the screen - anyone know if this can be removed?
Feb 12, 2009
Nga Luong
Just a thought.... You remove the word "People" (hence the link) in the breadcrumb via ConfluenceActionSupport.properties. It would look like this: Dashboard > > PersonalSpaceName > PageTitle
Feb 13, 2009
Andrew Frayling
Thanks Nga. Probably me being stupid, but where is ConfluenceActionSupport.properties? Running a search on our filesystem I can't find it. Is it wrapped in a JAR somewhere?
Feb 13, 2009
Nga Luong
Andrew, I'm using Confluence 2.8.2, so the file is wrapped inside confluence-2.8.2.jar. $confluenceRoot/confluence/WEB-INF/lib. Once you unzip the jar, it's in this directory: ./com/atlassian/confluence/core
Mar 16, 2009
michael regelin
Hi everybody,
The procedure dont make mention to "how do hide the link "People directory" from the Dashboard.
I just found that this is possible by adding the "global-dashboard-actions.xml" to the plugin directory also.
Of course, before doing this, you have to comment from line 31 to 40...
Sincerly,
Michael
May 14, 2009
Arie Murdianto
Yes, it seems that it will overwrite the existing xml file which is bundled in the jar file. Thanks for the sharing
May 06, 2009
Keith Brophy
Hope I did not jump the gun - but I have raised a bug regarding the disabling of the People Directory.
When the 'People Directory' has been disabled, any redirects to the the dashboard (e.g. by clicking on the 'People' link within the breadcrumbs when viewing a profile) result in the dashboard being displayed with the default site welcome message. This occurs even in the case where a custom site welcome message has been specified.
May 13, 2009
Bridget Maloney
What I'd really like to do is keep the people directory, but hide people that don't belong to the logged-in user's group(s).
Is this possible? Any ideas on where to start?
Thanks!
-Bridget
May 14, 2009
Arie Murdianto
Hi,
You need to modify 1 class file in Confluence so that your query can be fulfilled. The class file is a condition of the people directory appearance. If you use confluence 2.8.x. You just need to update the global.vmd, as Confluence 2.10.x has moved most of the links to be web-item plugins, then you need to change the class. The class which responsible to do this is com.atlassian.confluence.plugin.descriptor.web.conditions.PeopleDirectoryEnabledCondition.
Cheers,
Oct 29, 2009
Bridget Maloney
Hi Arie,
These changes would only show the other users that belong to the logged-in user's group(s), right? So if there are users that don't belong to the same groups as User A then they won't show up when User A navigates to the People Directory?
I use confluence 3.0.x, would the changes there be the same as confluence 2.8.x? Exactly what steps do I have to follow? Is the class you mention the new one or the one I'd be replacing. Do I have to rebuild after making the changes?
Thanks,
Bridget
Nov 02, 2010
Raphael Joss
Hi Bridget
Were you able to implement this?
We have exactly the same issue for a Confluence extranet solution. Users should only be able to see information of their group members and not the whole people directory.
Nov 09, 2010
Bridget Maloney
Nope, I didn't wind up trying since no one answered the questions I had. If you try, please let us know how it goes (and good luck)!
Thanks,
Bridget
Apr 08, 2010
Lumina Purandare
Hi
Would it be possible to list the possible impacts when someone decides to disable the people directory entirely? We have done this in our company, however now we are finding things like whenever names are shown for e.g. in Space watchers from Space Admin, or in the Forums where the topic authors name shows up, their images do not show. We were wondering if this is a problem because our people directory has been disabled entirely. Please advise
Thanks
Lumina
Jan 28, 2011
Anonymous
Hi,
I would like to know if I can apply a custom Layout ( like a Theme Builder Layout) to the People Directory page or to the Seach page ?
Also any kind of customization for those pages would be great.
Thank you
Apr 04, 2011
Anonymous
Yes, you can. Check out:
Builder should expose the necessary info in the page source.
Mar 06, 2011
David Peterson [CustomWare]
If you're willing to write a plugin, you can reroute the People Directory to another location by using the Conveyor Plugin to 'override' the existing actions. Instructions are here.
Apr 01, 2011
Stefano Gevinti
To redirect the URL <CONFLUENCE_INSTALL>/browsepeople.action and avoid to access to People link on breadcrumbs (Dashboard >> People >> FullName >> Profile) do the following:
Jun 17, 2011
Anonymous
I put my users into groups, and I would like to restrict user visibility by group. For example, if I have a groups ClientA and ClientB, I would like to be sure that members of ClientA cannot see users in group ClientB.
Jun 19, 2011
Michael Seager [Atlassian]
There's an existing feature request for this, see: CONF-7837.
Oct 08, 2011
Jason Plumhoff
I was looking for a good way to disable the people directory when I figured this out. Simply edit the <Confluence install directory>\confluence\users\peopledirectory-results.vm file. I just changed it to:
You can still click on specific users and get to their user pages. And of course, the autotext in the search box will reveal user names. But at least the directory is gone...
Nov 03, 2011
Joey McDaniel
Hi Jason,
Thanks for posting this! Now that the People Directory has been gracefully "disabled", I want to hide users from Search as well. What I'm hoping to avoid is User A finding out that User B has an account. In order to really hide User B from User A and vice versa, I'll need to ensure that one user can't do a search for the other.
How can I ensure that users are not able to search for each other?
Nov 03, 2011
Jason Plumhoff
I spent a bunch of time trying to solve this problem and I still haven't been able to get a 100% perfect solution. But having said that, I've had reasonably good results by modifying the search-results.vmd file to filter out user profiles from the results. See the snippet below:
<div id="search-results-body"><ulclass="search-results">#foreach($searchResult in $results)#if($searchResult.type != "userinfo")<li >$action.newSearchResult($searchResult, $showExcerpts, $queryString)</li>#end#end</ul></div>I also disabled Quick Navigation in the admin->general configuration page. Even if the users get the name EXACTLY right in the search bar, they still won't get the link in the search results, so this seemed pretty strong. Bad news though... disabling the quick nav only seems to work on the main search box. If one of your users clicks the "Share" button at the top of the page and starts typing in the email/user input field, quick nav will "helpfully" suggest users - revealing the very people you were trying to hide.
I thought about voting for a feature request to Atlassian to add a way to hide users. From what I've seen though, people have been asking for this capability since at least 2006. Despite numerous requests, Atlassian doesn't seem interested in implementing this feature. I really respect their policy of encouraging an open culture, and I really wish I could follow their example. But I'm contractually bound in some cases not to reveal my customers' names, so I don't have that choice. Instead, I have to resort to modifying a bunch of files to try to hack it out - and if I ever do an upgrade, I'm going to have to be very careful to preserve my changes.
I love the product and the support people have all worked really hard to help me, but the inability to fully protect my users' privacy has been a really disappointing aspect of Confluence.
Jason
Nov 09, 2011
Joey McDaniel
Thanks for the help!
I'm also under strict marching orders to hide users from each other.
I often feel that maybe we're just using Confluence in a way it wasn't intended which is why I keep running into these types of difficult issues. It handles so much of what we want, but there are a lot of little things that start to add up.
Nov 09, 2011
Joey McDaniel
Hi again, I'm having a hard time locating search-results.vmd. Is it in a JAR file?
Nov 10, 2011
Jason Plumhoff
I have it in: \Program Files\Atlassian\Confluence\confluence\decorators\components
FYI - I am running version 4.0.
Add Comment