JIRA finding users for a given directory

Hi all,

I have what I thought would be a very easy operation, but I am a little stuck.  We have 2 users directories:

  1. JIRA Internal
  2. LDAP

The JIRA internal should be just used for my administration and the like, but I just stumbled across a user who was internal.  So I need to find all users who are internal so I can get them to start using ldap ID instead.  I go to user and there is no directory filter.  Also I cannot click on the column title to sort by Directory.  

All I need is to find all users who are part of the JIRA internal directory.  Is there a way to do this?

(I did find this https://confluence.atlassian.com/jira/migrating-users-between-user-directories-426116517.html on migrating users but I do not have the option Migrate users from one directory to another under User Directories)

Thanks in advance!

Robert

 

4 answers

1 accepted

Only way I know of is to query the database directly.... something like this ought to do the trick:

SELECT * FROM cwd_user
WHERE directory_id = 1

Really? interacting directly with the database? Wow. I think I will submit that as a feature request as it seems very easy and I could really see the usage. Thanks! Robert

BTW that worked great. Thanks again.

Robert: did you find or submit a feature request for this?

No, I used Jordan's database query and that gave me what I needed.

Using the JIRA internal database is very dangerous.  I strongly recommend using a separate mysql database.   However here is how: https://confluence.atlassian.com/jirakb/running-sql-commands-in-a-hsql-database-685900390.html 

Something via the UI would be nice.

Can this functionality be added to the UI so that was can easily search users from a particular user directory (Internal, LDAP, Crowd)

I guess this is a no and we can't vote on it, since no one ever answered. It would make my life far easier to manage the 2000+ users we have.

Is there an update on this issue or do we still have to do this with SQL?

Submitted JRASERVER-65844 to add a filter on the "user management" screen.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday 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 ...

588 views 2 15
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