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

This widget could not be displayed.

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

277 views 5 0
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