Confluence displays UnknownUser<username> after migrating users from Delegated Directory to Confluence Internal Directory

hello all, I have implemented Custom authenticator for Confluence. As part of this I'm migrating all users from Delegated LDAP Directory to  Confleunce Internal Directory. I see a vague Unknown User<username> in all pages for all users..

I have executed following SQL Statements to migrate from LDAP Directory to Internal Directoru

SELECT id FROM CWD_DIRECTORY;

UPDATE cwd_user SET directory_id = <destinationid> WHERE directory_id = <sourceid>;
 
UPDATE cwd_group SET directory_id = <destinationid> WHERE directory_id = <sourceid>;
 

// UPDATE FOR CONFLUENCE USERS AND ADMINISTRATORS
UPDATE cwd_membership SET parent_id= <destinationid> WHERE parent_id= <sourceid>;
 
UPDATE cwd_group_attribute SET directory_id = <destinationid> WHERE directory_id = <sourceid>;
 
UPDATE cwd_user_attribute SET directory_id = <destinationid> WHERE directory_id = <sourceid>;

 

I have re-indexed the confluence But I still see the same issue

 

Any ideas/thoughts to fix the UnknownUser<username> 

 

 

3 answers

This widget could not be displayed.

Hi Karanam,

Could you please explain why you modified the value in cwd_membersip table? Because the mentioned table does not contain directory_id in it? Also, could you please let us know if you are able to confirm that the users has been migrated once you access their profile from:

Confluence Administrators Menu >> Users >> 

Finally, is any users that has tried to login from LDAP still describe as unknowned users?

This widget could not be displayed.

Sorry it is my mistake. It is not directory_id in cwd_membership but is parent_id .

This widget could not be displayed.

May want to take a look at this question:

https://answers.atlassian.com/questions/319872

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

290 views 1 4
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