Search for issues where LDAP based users from been deleted

I've found/read numerous "answers" where LDAP users have been deleted by a corporate LDAP admin because they have left the company, been fired, contract was up, etc. The Jira Admin had no time to perform a bulk change.

Some answers alluded to creating a local jira user so a bulk change could be done. Great but what happens if you don't know what ldap users have been deleted so I want to perform a search. Well, if you use the gui to edit the issue, the assignee|reporter fields show up as 'unassigned'. If you display the issue, assignee|reporter fields show the 'userid' and not the full name of the user.

So what JQL syntax can I use to find issues that are assigned or reported by users that have been deleted in LDAP?

1 answer

1 accepted

Hi Brent,

I'm not sure if it's possible to be done through JQL, but you extract this information directly from your database using this query:

select assignee from jiraissue where assignee not in (select user_name from cwd_user);

I hope this has helped.


Thanks for the quick response. I'm a little rusty with mysql but I ran the query with the addition of "select assignee,pkey" and got my list of effected users and their associated issues.

I'll leave the question open in hopes that I can get a JQL query.

Renjith Pillai Community Champion Jan 16, 2013

I guess, JQL is doubtful, you need to mostly go via the database way.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,975 views 12 18
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot