Search code examples
apirestjirajira-rest-apipython-jira

Jira REST API - Fetch all users data from a resource


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"
    },
    {
    ...
    ...
    ...
    },
]

Solution

  • you can add in the query the param:

    startAt=0&maxResults=1000