How to request Atlassian Users via Jira API?

baloghbence0915
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!
April 28, 2022

Hi all,

 

I'm trying to reach a list of user via Web API.
My qoal is:

  • Request list of users where the name matches for "Bob" or it is anything (2 different requests)
  • Users should be real users in this case where accountType="atlassian" and not "app" or anything else

I have tried:

/rest/api/3/user/search/query?query=is [accountType].entity.property.path is "atlassian"

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-query-get

or

/rest/api/3/user/search?query=*&accountType="atlassian"

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get

 

But no luck so far.

I have done some investigation around the community, but I didn't find a solution, that could work for me.

Also the attached documentations above are in lack of examples about the usage of those complex parameters.

Could you help me please?

Thanks in advance,
Bence

 

P.S:
I'd like to feed a user selector component by this.

2 answers

0 votes
Thaynã Ferreira
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!
March 5, 2024

Almost a year later and I have the same issue, would be great if we got an actual response to this.

0 votes
Gokhan Gokoz
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!
April 20, 2023

Hi @baloghbence0915

Did you find a way doing this, I have the same requirement. 

Suggest an answer

Log in or Sign up to answer