Error with Find Users API

Nishant Bhushan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2024

We are using the Find Users API (link) to retrieve user details. However, we are encountering a 404 error with some accounts.

Here are the details:

  • When the user is not present, the API returns a 200 status code with an empty response.
  • With some specific accounts, the API returns a 404 error whether the user is present or not.

Can you please help us understand in what cases the 404 error is triggered? Could this be related to the credentials we're using (e.g., does the email need to belong to an admin account)? Or is there a different underlying issue?

We'd appreciate your help in resolving this.


Screenshot 2024-10-15 at 3.12.36 PM.pngScreenshot 2024-10-15 at 3.18.27 PM.png

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2024

Hi @Nishant Bhushan 

Welcome to the community.

Is this a Jira user or a JSM customer, if this is a JSM customer, this will result in a 404 as this information is not stored 

Then try this API endpoint, https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-servicedeskid-customer-get 

Nishant Bhushan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2024

Hi @Marc - Devoteam thanks for reply.
This is jira user not JSM. Can you help me here if this is Jira user why i am getting 404 error ?

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2024

Hi @Nishant Bhushan 

Your first call with 200 is correct, but this result means no user is found with the search.

The 404 I can't explain, as the search would provide no results based on any search context if no result is found

See example on my side, this an ok result

Screenshot 2024-11-12 at 11.55.16.png

Result [], means as I mentioned before, no results found

 

Sumit Rajendra Athani November 15, 2024

Hi @Marc - Devoteam,

I hope you are doing well. 

as mentioned for "With some specific accounts, the API returns a 404 error whether the user is present or not." 

The 200 response is for zluritest1 org and 404 for test-zluri-demo, and we are not able to figure out why.

we want more details on why we get 404 error and the account is based on jira software not JSM.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2024

HI @Sumit Rajendra Athani 

Still the result [] means nothing found.

The page not found I can't explain as I can't reproduce this on my end.

My only suggestion would be to contact Atlassian Support and present them the case.

Sumit Rajendra Athani November 15, 2024

sure @Marc - Devoteam . Ill check with the support team and present this case.

Thank you.

 

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events