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
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 u.id = 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 = d.id
WHERE d.active = '1'
AND u.active = '1'
AND license_role_name = 'jira-software';
The article has queries for Service Desk and Core as well.
Cheers,
Branden
Great! thank you for pointing out and even showing me an example. speed up for us, many thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries. It was my pleasure!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.