get the right list from database

Hi,  we have some issues to get a query to search for jira software user and get a list of current jira software user for a review. 

mysql database running for jira 7.x

would you please help ? 

we did see all the users in cwd_user, but don't know what to filter in order to get only jira software users

1 answer

1 accepted

0 vote

Hi Quan,

There is a knowledge base article titled How to Get a List of Active Users Counting Towards the JIRA application License that can help you achieve what you're looking for.  This will get a list of users counting towards the JIRA Software license:

SELECT DISTINCT u.lower_user_name
FROM   cwd_user u
       JOIN cwd_membership m
         ON = m.child_id
            AND u.directory_id = m.directory_id
       JOIN licenserolesgroup lrg
         ON Lower(m.parent_name) = Lower(lrg.group_id)
       JOIN cwd_directory d
         ON m.directory_id =
WHERE = '1'
       AND = '1'
 AND license_role_name = 'jira-software';

The article has queries for Service Desk and Core as well.



Great!  thank you for pointing out and even showing me an example.  speed up for us, many thanks

No worries.  It was my pleasure!

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

800 views 2 19
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