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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,130 views 22 10
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