Jira mySQL query: Active users that belong to a specific group

Iro Karavasili May 22, 2019

Hi all!

I'm trying to find a mySQL query that returns all the active Jira users that belong to a specific group.
We use jira version 7.9.2.
Any help would be useful!

Thank you!!

1 answer

1 accepted

1 vote
Answer accepted
Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2019

Hi @Iro Karavasili ,

Kindly try : 

SELECT DISTINCT 
cwd_user.lower_user_name, cwd_user.display_name
FROM cwd_user
JOIN cwd_membership ON cwd_membership.child_id = cwd_user.id
JOIN cwd_group on cwd_membership.parent_id = cwd_group.id
WHERE cwd_group.group_name = 'your-group'
AND cwd_user.active = 1

Antoine

Iro Karavasili May 29, 2019

Thank you @Antoine Berry !! :)

Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2019

@Iro Karavasili ,

did your comment get deleted ?

Iro Karavasili May 29, 2019

@Antoine Berry  Hmm yes, strange... :/ 
I just wanted to thank you! :P

Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2019

Indeed... You're welcome !

Suggest an answer

Log in or Sign up to answer