Used Zammad installation type: (source, package, docker-compose, …)
Operating system:
Browser + version:
Expected behavior:
When I run curl --insecure -u “username”:“password” https://zammad.mydomain.net/api/v1/users in the command prompt, I expect to get the data for every user in the Zammad system.
Actual behavior:
I am only getting the first 500 users in the Zammad system when I know I have more than that in there.
The limit per call can be defined but there will always be a max. number. I am not sure what the max number at this specific route is, but I guess 500.
The rest api is usually not used for manual use. You normally build some kind of application that calls this route untill the last call gets a response.
Since Zammad doesn’t provided any information of the total number of results nor the number of pages or if the requested page is the last page, you will have to request the next page untill you receive an empty response.
Basically, you keep asking for a next page and when you get an empty response, you know you’re done. The pagination should stop after an empty response or empty data in the body.