Search the Confluence 4.1.x Documentation:

Index
Downloads (PDF, HTML & XML formats)
Other versions

This documentation relates to Confluence 4.1.x
If you are using an earlier version, please view the previous versions of the Confluence documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

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
  • To disable the People Directory entirely,
-Dconfluence.disable.peopledirectory.all=true

(warning) The information on this page does not apply to Confluence OnDemand.

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:

Procedure for Confluence 2.5.2 to 2.9.x. only

(info) 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:

 

 

 

 

 

 

Related Topics

Page: Configuring Captcha for Failed Logins
Page: Running Confluence Over SSL or HTTPS
Page: Excluding external referrers
Page: Configuring the Administrator Contact Page
Page: Hiding the People Directory
Page: User Email Visibility
Page: Anonymous Access to Remote API
Page: Configuring Captcha for Spam Prevention
Page: Hiding external referrers
Page: Ignoring External Referrers
Page: Managing External Referrers
Page: Hiding External Links From Search Engines
Page: Enabling or Disabling Public Signup

  1. Jul 30, 2007

    Can this be done for a specific group (not anonymous users)?

    1. Jul 30, 2007

      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.

  2. Oct 01, 2007

    I'm running this on windows, where do these commands go exactly?

    1. Oct 02, 2007

      Hi Mark,

      If you are running a Confluence standalone edition, this can be done by editing the setenv.bat file which is available in the ${catalina.home}/bin directory.
      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.bat file.

      Hope the information helps.

      Cheers,
      Tony

      1. Feb 11, 2008

        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

        1. Feb 12, 2008

          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

  3. Dec 19, 2007

    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.

    1. Jan 11, 2008

      hi ulrich,

      do you have a solution for hiding the recently updated links for the user profiles?

      regards

      1. Mar 22, 2008

        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. (sad)

        In addition, you can prevent search engine indexing on your site.

        Ulrich

  4. Mar 11, 2008

    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? 

    1. Mar 17, 2008

      Hi Peter,

      People Directory provides a list of all users in your Confluence system. Disabling the People Directory can 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.

      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?

      I would suggest you to raise an improvement request at our issue tracker. Thanks.

      Regards,
      MG

    2. 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.

  5. Mar 11, 2008

    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.

    1. Mar 17, 2008

      Hi Tom,

      I would suggest you to raise a support ticket at our issue tracker for further investigation to this issue:

      Regards,
      MG

    2. Apr 01, 2008

      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.

      1. Apr 01, 2008

        Hi guys,

        To my understanding, modification made to the Global Layout via the Administration console as well as the global.vmd file 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

  6. Mar 26, 2008

    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.

    1. Mar 27, 2008

      Hi David,

      Please create a support ticket at the following issue tracker and we will verify the problem from there:

      Regards,
      Choy Li

  7. 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

    ")

    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. 

  8. Aug 12, 2008

    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.

  9. Nov 19, 2008

    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.

    1. Dec 03, 2008

      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:

      1. Confluence action about peopledirectory.action or browsepeople.action.
      2. disable the webitem about people directory in dashboard or you hide it in your custom theme. Thus, when people access directly to the actions, there is no exception displayed.

      Cheers,

  10. 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

    1. Dec 09, 2008

      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

  11. Dec 23, 2008

    In some cases it may be required to rebuild the war file after making this change.

  12. Feb 06, 2009

    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?

    1. Feb 12, 2009

      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

      1. Feb 13, 2009

        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?

        1. Feb 13, 2009

          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

  13. Mar 16, 2009

    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

    1. May 14, 2009

      Yes, it seems that it will overwrite the existing xml file which is bundled in the jar file. Thanks for the sharing

  14. May 06, 2009

    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.

  15. May 13, 2009

    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

    1. May 14, 2009

      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,

      1. Oct 29, 2009

        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

        1. Nov 02, 2010

          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.

          1. Nov 09, 2010

            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

  16. Apr 08, 2010

    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

  17. 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

    1. Apr 04, 2011

      Anonymous

      Yes, you can. Check out:

      Builder should expose the necessary info in the page source.

  18. Mar 06, 2011

    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.

  19. Apr 01, 2011

    To redirect the URL <CONFLUENCE_INSTALL>/browsepeople.action and avoid to access to People link on breadcrumbs (Dashboard >> People >> FullName >> Profile) do the following:

    1. Open the file <CONFLUENCE_INSTALL>/confluence/WEB-INF/web.xml
    2. Find the following configuration:
    3. Modify it as below:
    4. Then open the file <CONFLUENCE_INSTALL>/confluence/WEB-INF/urlrewrite.xml
    5. Add the following rule:
    6. When you click on "People" link you'll be redirected to Dashboard
  20. 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.

    1. Jun 19, 2011

      There's an existing feature request for this, see: CONF-7837.

  21. Oct 08, 2011

    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:

    peopledirectory-results.vm

    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...

    1. Nov 03, 2011

      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?

      1. Nov 03, 2011

        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">
        <ul class="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

        1. Nov 09, 2011

          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.

        2. Nov 09, 2011

          Hi again, I'm having a hard time locating search-results.vmd.  Is it in a JAR file?

          1. Nov 10, 2011

            I have it in: \Program Files\Atlassian\Confluence\confluence\decorators\components

            FYI - I am running version 4.0.