I had worked on this issue sometimes back. Getting users list from SQL is not reliable and completely depends upon what type of user directory you have set up. In my case, I copied all the user details from UI and then formatted that in Excel sheet and there you can filter based on login details.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events