Searching for user in JIRA Cloud API fails


We ran into a problem when no user is found in JIRA instance when searching for user using GET /rest/api/2/user/search endpoint in JIRA add on, username is set to user email adress. Endpoint is accessed via JWT authentication, addonParams.http.get() function, addonParams are built as following:

addonParams = {
http: addon.httpClient({
clientKey: clientKey, // the unique client key of the tenant to make a request to
addonKey: addonKey
clientKey: clientKey,
userId: userKey

User has global permission to search for users.

To add to the problem, the query returns user correctly on some JIRA instances. On the instance where query does not find the user, Tempo add on is installed. When user is not found, response is still 200 or 201, not a failure.

The same query to GET /rest/api/2/user/search returns the user correctly when query runs from Postman, with Basic Authentication, in the JIRA instance where add on query fails.

Could you please point us in the right direction, what could be the problem when running the query from add on?

Thank you.


2 answers

0 votes

Hi @Irena Shemesh,

This sounds like a bug when Tempo is installed, can you please raise a ticket with our Developer Support team so they can take a more detailed look?

I would also like to point you towards our Developer Community for all further questions around JIRA Development, you'll get faster answers to your development questions when asking them on the Developer Community:



Hi Peter,

Thank you for your response. I have raised a ticket as you suggested.




Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,152 views 5 10
Read article

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