Counting active Jira users (Jira v6.1.5)


We have still unlimited JIRA license plan and want to know how many active users we have currently. I have been looking at this KB-article which is filtering users active=1 and where users are having membership. But in addition it also check schemepermissions which i don´t understand why. Can anyone confirm that this is relevant for this query?

The definition of active user counting in the license is that active=true and that he has permission to jira_users group.

Here is the SQL query:

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 schemepermissions sp
         ON Lower(m.parent_name) = Lower(sp.perm_parameter)
       JOIN cwd_directory d
         ON m.directory_id =
WHERE  sp.permission IN ( '0', '1', '44' )
       AND = '1'
       AND = '1';

2 answers

0 vote
Tarun Sapra Community Champion Nov 21, 2014

In the Global permissions in JIRA see the groups which constitute top 3 permissions and then in the groups section of JIRA the number of users in those groups are basically the total active users. Mostly it's the jira-users group which has all the active user it's based on the global permission JIRA users in the global permission section.

Thanks for the reply, but Im stilling wondering whether schemepermission is something I should bother with.

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

792 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