Access inaccessible Confluence instance? (I disabled the internal user directory)

So I set Confluence to use the JIRA user directory.  I then disabled the confluence user directory.  Everything was fine until my cookie expired.  Now I can't login to Confluence with my admin account or any other account.

Here is what my Confluence cwd_directory table looks like currently:

 

360449Remote JIRA Directoryremote jira directory2015-05-27 10:05:09.3972015-06-29 15:41:48.0971NULLcom.atlassian.crowd.directory.RemoteCrowdDirectorycom.atlassian.crowd.directory.remotecrowddirectoryCROWD
360450Confluence Internal Directoryconfluence internal directory2015-05-27 10:05:10.1802015-06-29 15:40:25.3501Confluence default internal directorycom.atlassian.crowd.directory.InternalDirectorycom.atlassian.crowd.directory.internaldirectoryINTERNAL

 

And here is my JIRA cwd_directory table (JIRA does work, I can login fine)

1JIRA Internal Directoryjira internal directory2013-02-28 11:57:51.3072015-06-29 15:44:35.6031NULLcom.atlassian.crowd.directory.InternalDirectorycom.atlassian.crowd.directory.internaldirectoryINTERNAL0

2 answers

Hi,

You can try the following steps to enable the Directory

  1. Use a native client to connect to your database
  2. Run the following SQL:

     

    UPDATE cwd_directory SET active = 'T';

     

    information The value of 'T' may need to be changed to match the 'true' value in your database. The above is for PostgreSQL.

  3. Restart Confluence and all the user directories will be enabled.

regards,

Siddheshwar.

It's MSSQL. I tried setting it to 1 and that didn't fix the issue.

Updated original question with more information.

I just tried T out of desperation. Still can't login.

Thanks for more info, You can restore your admin password by using the following link. https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights This link helps you to restore you password from database.

Siddheshwar could you post that as an answer?

0 vote

Hi Scott, after executing the query that  Siddheshwar commented, you have to restart your Confluence's service.

 

You can also create the following groups into Jira:

  • confluence-user
  • confluence-administrator

And add these groups into your Jira's user.

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 ...

866 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