Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get all users

Mansi Gusain
Contributor
March 20, 2025

Is there a way I can filter the api to get users matching the name I pass? to avoid pagination basically?

 

/rest/api/3/user/assignable/search

 

I used 

 

/rest/api/3/users but it is not yielding the account ids for all users and somewhat not required material. 

 

 

3 answers

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
March 20, 2025

The api endpoint

/rest/api/3/user/assignable/search

 

...does support adding parameters to reduce the results. Did you look at this:

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

Screenshot 2025-03-20 at 8.26.06 AM.png

Mansi Gusain
Contributor
March 20, 2025

I used assignable search get only , only A lettered people are shown using that 

Trudy Claspill
Community Champion
March 20, 2025

Did you include the query parameters in your payload/API call?

If you don't then the API will return all Assignable users in a paginated list.

The maximum results that can be returned per page vary from one API endpoint to another, so you have to experiment with setting the maxResults parameter, increasing its value until you see that the results will not return in a single page the number you specify.

Mansi Gusain
Contributor
March 20, 2025

Max results I did not use but thanks for the input. 

Mansi Gusain
Contributor
March 24, 2025

Hey thanks , I was able to pass as query and it returned ID.

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.
March 20, 2025
Mansi Gusain
Contributor
March 24, 2025

Hi thanks for helping

Like Marc - Devoteam likes this
0 votes
Philipp Sendek
Community Champion
March 20, 2025

Hi @Mansi Gusain

the REST Endpoint you're looking for should be this one: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get

You can provide a parameter which is searched for in the displayName and emailAddress field.

One addition of caution: When I've used this in a script in the past, it happend that empty values or incorrect queries resulted in random users being found. So if you use this in a script, make sure to check the results against your search query to make sure the right user account has been found.

Alternatively there's also this, which allows a more sophisticated query: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-query-get


I hope that helps!

Greetings
Philipp

Mansi Gusain
Contributor
March 24, 2025

Thanks for helping :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events