JQL for searching users

Similar to the search_users function in the JIRA package in Python: http://pythonhosted.org//jira/_modules/jira/client.html#JIRA.search_users

How would you replicate the same search via JQL? 

For instance I want to search for all users that have the name "Bob Smith"

1 answer

1 vote

JQL is for finding issues, not users.

I'm not sure I can add a lot to that statement.  JQL absolutely requires that you phrase the question as "show me issues that match <question>".   Not users.  

If you want to search for users called Bob, then you need to go into the user maanagement and ask that to show you Bob.  Nothing to do with JQL

Okay, is there a way to search for users via the REST API then? How does the python package manage to do it?

The answer to that is in the code you posted: https://docs.atlassian.com/jira/REST/latest/#d2e4353

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

473 views 1 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