My guess is that the SQL query is not correct.
First, look in Global Permissions in JIRA - what group or groupS are named for "JIRA users" permission? (Also note the two administrator lines, although the users in there are probably in the user groups already)
Then tell us what the SQL is you're running.
I take the sql from official site https://confluence.atlassian.com/jirakb/how-to-get-a-list-of-active-users-counting-towards-the-jira-application-license-278695452.html
SELECT DISTINCT u.lower_user_name
FROM cwd_user u
JOIN cwd_membership m
ON u.id = m.child_id
AND u.directory_id = m.directory_id
JOIN globalpermissionentry gp
ON Lower(m.parent_name) = Lower(gp.group_id)
JOIN cwd_directory d
ON m.directory_id = d.id
WHERE gp.permission IN ('USE','ADMINISTER','SYSTEM_ADMIN')
AND d.active = '1'
AND u.active = '1';
I go to User management and set filter user on include the group
- jira-users = 361
- jira-administrators = 10
- jira-developers = 55
When I run SQL query only like "WHERE gp.permission ='USE';" and delete "AND d.active = '1' AND u.active = '1';"
I recieve result 224 users
What wrong a count users?
I don't think the count is wrong, I think the SQL does not match the question. But I do not know what SQL you're actually effectively running. I'm not a DBA and I only really get the basics of searching - could you show me what you're running without obscuring it with "as" statements ? (I know they simplify it for DBAs, but they make reading what the query does really hard)
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 ...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot