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
        WHERE
            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
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

275 views 2 10
Read article

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