Get list of usernames from email list.

Juventino Gaytan Jr January 29, 2020

Is there a way to extract a list of usernames from Jira based on a list of email addresses?

1 answer

0 votes
Adrian Stephen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2020

Hi @Juventino Gaytan Jr 

Welcome to the community!

The username and email data are stored on the cwd_user table from the database. 

You can query the usernames there based on their email.


Regards,

Adrian Stephen

Juventino Gaytan Jr February 3, 2020

@Adrian Stephen  Thanks for replying to my questions.  I appreciate the insight.  Would I be able to pipe in a list of emails to extract the associated usernames?

Regards,

Juventino Gaytan

Like Adrian Stephen likes this
Adrian Stephen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2020

Hi @Juventino Gaytan Jr 

It should be possible like this :

select user_name, email_address from cwd_user where email_address in ('username1@email.com','username2@email.com','username3@email.com')

Suggest an answer

Log in or Sign up to answer