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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

867 views 23 12
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