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.
The api endpoint
/rest/api/3/user/assignable/search
...does support adding parameters to reduce the results. Did you look at this:
I used assignable search get only , only A lettered people are shown using that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey thanks , I was able to pass as query and it returned ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.