Searching for user in JIRA Cloud API fails

Hi!

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.

Regards,
Irena

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?

https://ecosystem.atlassian.net/servicedesk/customer/portal/14

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:

https://community.developer.atlassian.com

Cheers,

Peter

Hi Peter,

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

 

Regards,

Irena

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,044 views 2 7
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