Confluence - administrator locked out

I'm just using Confluence casually at home for some practice for my work set up.

I logged out the other day, and when I tried to log back in it doesn't recognise my user/password.

I'm damn sure the password is correct, but something's definitely not working. Don't have a mail client set up so can't email myself the password, etc - and neglected to set someone else up as admin to fix it for me. Yes, I'm an idiot.

Is there any way to either:

Reset the administrator

or

Reset the admin password?

2 answers

1 accepted

1 vote

Just to specify the queries you'd need to run in order to change the administrator password:

select u.id, u.user_name, u.active from cwd_user u
join cwd_membership m on u.id=m.child_user_id join cwd_group g on m.parent_id=g.id join cwd_directory d on d.id=g.directory_id
where g.group_name = 'confluence-administrators' and d.directory_name='Confluence Internal Directory';

With this query, You'll get the admin IDs. Then you can change the admin password with the next query:

update cwd_user set credential =
'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='
where id=<id from Stage 1>;

Hope that helps!

Rodrigo

Thanks to you both!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,321 views 93 8
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