1

I am trying to fetch a resource of All users list in Jira, but Jira API sends list of only 50 users. I want to fetch list of all users. How can I do it?

endpoint: https://myurl.atlassian.net/rest/api/3/users/search

Response (only 50 users, not all users)

[
    {
        "self": "https://myurl.atlassian.net/rest/api/3/user?accountId=*********************",
        "accountId": "*********************",
        "accountType": "customer",
        "displayName": "Former user",
        "active": false
    },
    {
        "self": "https://myurl.atlassian.net/rest/api/3/user?accountId=************************",
        "accountId": "************************",
        "accountType": "atlassian",
        "emailAddress": "****************",
        "displayName": "*************",
        "active": true,
        "locale": "en_US"
    },
    {
    ...
    ...
    ...
    },
]

1 Answer 1

1

you can add in the query the param:

startAt=0&maxResults=1000
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, its working, any way to know total number of items and dynamically fetch till last item without hardcoding maxResults. I want maxResults to be dynamically passed in query

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.