The getAccountId API is not returning any information

Arti Ashok Agarwal March 19, 2024

We are using below API to fetch account id information:

API: https://iasp-jira2.atlassian.net/rest/api/3/user/search?query=%27atul.kumar.k.singh@accenture.com%27

We are getting 200 responses however we are not receiving any information for the account.


MicrosoftTeams-image (16).png

1 answer

1 accepted

1 vote
Answer accepted
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

Hi @Arti Ashok Agarwal 

Welcome to the Atlassian Community!

Can you try below in your browser first and see if that works ?

https://iasp-jira2.atlassian.net/rest/api/3/user/search?query=atul.kumar.k.singh@accenture.com

I think you have added single quote in value field in postman, that might be causing the issue.

 

Arti Ashok Agarwal March 19, 2024

We have tried the above API also and it is returning the same response. Can you please suggest next steps.

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

For me its working fine. Do you have the "Browse users and groups" global permission?

 

Arti Ashok Agarwal March 19, 2024

We have verified the global permissions and added required permissions. However, still we are unable to fetch accountId info for the user who is admin for the JIRA account. Please check.MicrosoftTeams-image (19).png

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

Can you please share a screenshot of "Authorization" tab from postman ?

Alternatively, if you are logged in to the site via browser and then hit the url- https://iasp-jira2.atlassian.net/rest/api/3/user/search?query=suhas.umesh@accenture.com, it will work if you have the permissions.

Arti Ashok Agarwal March 21, 2024

Hello, thanks for your response for above query and we were able to resolve this issue with your above answer. Appreciate your support here. Thankyou! Have a great day ahead.

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2024

Great, glad to help @Arti Ashok Agarwal Please consider marking the answer as accepted to assist other members who may have similar question.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events