When searching for users, the search shows duplicate personal spaces

We installed Confluence 4 and used the new AD directory server integration. This has caused us quite a bit of headache, and one of the lingering problems is that when you search for some users, the search shows two entries for their personal space. Both point to the same personal space, since there is only one active space for each user.

How can we prevent this from happening?

3 answers

1 accepted

This could be caused by a duplicate USERINFO content object, or a corrupted index. I'd suggest to try the following:

  1. Rebuild index from scratch
  2. Try search the following in Confluence:
    type:userinfo AND username:affectedUserName
    If they still return more than one, then you can query and delete it from the database
  3. Run this query:
    SELECT LOWER(c.username)
        FROM CONTENT c
            contenttype LIKE 'USERINFO' AND
            prevver IS NULL
        GROUP BY LOWER(username)
        HAVING count(*)>1;

  4. Delete it. It's quite similar to this known issue: https://confluence.atlassian.com/display/CONFKB/Duplicates+in+the+People+Directory

how many user repositories do you have? user entries may show up twiec if the user exists in mulitple repositories, possibly internal (old) users of same id vs ldap users (new)?

Some times just disabling the LDAP directory and creating it again might fix this issue, but if the root cause is a corrupted index I believe is necessary to rebuild index from scratch first.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

160 views 3 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you