Crowd admin without admin console

Hi there,

we got a serious problem with our crowd installation. When we login with our crowd-admin we can only use the self-service module and not the admin console. I tried to look into this problem but did not found anything that I could fix by myself. The only information I got is that our crowd-admin is still in the crowd-administrators group. I checked it with the following MySQL query:

select u.id, u.user_name, u.directory_id from cwd_user u join cwd_membership m on u.id=m.child_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 = 'crowd-administrators' and d.directory_type='INTERNAL';

 

1 answer

1 accepted

Well, nevermind. I fixed it by myself.

The problem was that the directory_id field in the cwd_app_dir_group_mapping table didn't match the app_dir_mapping_id field.

I figured it out by comparing the ids from

select * from cwd_directory;

and

select * from cwd_app_dir_group_mapping;

and

select m.id, m.application_id, m.directory_id from cwd_app_dir_mapping m join cwd_directory d
  on m.directory_id = d.id join cwd_application a
  on m.application_id >= a.id
   where d.directory_type='INTERNAL' and a.application_type = 'CROWD';<code></code>

I figured it mostly out by changing some of the querys from the article restoring passwords to recover admin user rights

Marcin Kempa Atlassian Team Aug 10, 2017

Hi @Sönke Gödecke

 

I am glad that you were able to solve this issue. However I am wondering how did you run into such problems? Would you mind describing it in more detail?  

If you like we can discuss this outside atlassian community. Here is my email: mkempa@atlassian.com

 

Best Regards,

Marcin Kempa, Crowd Dev Lead

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,007 views 5 18
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot