Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

MySQL command: How to find all Jira active users based on email address.

Iro Karavasili
Contributor
October 14, 2019

Hello,

I need some help with a MySQL command.
I try to find all active users that have eg "@domain.com" email address.
Any help?

Thank you in advance,
Iro

3 answers

3 votes
Tuncay Senturk
Community Champion
October 14, 2019

Try this one

SELECT * FROM cwd_user where active = 1 AND email_address LIKE '%@domain.com'
1 vote
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2019

Hi @Iro Karavasili

Please try

select user_name from cwd_user where active=1 and email_address like '%@domain.com%';

0 votes
Iro Karavasili
Contributor
October 14, 2019

Thanks you both.!
Just found it:
SELECT DISTINCT cwd_user.lower_user_name, cwd_user.display_name FROM cwd_user WHERE cwd_user.lower_email_address like '%domain.com' AND cwd_user.active = 1;

Suggest an answer

Log in or Sign up to answer