When searching for users, the search shows duplicate personal spaces

Deleted user March 19, 2012

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

0 votes
Answer accepted
HuseinA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2012

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
0 votes
BernardoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2013

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.

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2012

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)?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events