You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The issue is twofold. First of all the docstrings for zscaler/zia/users.py statee that list_users() takes a page_size argument. This argument throws an error but a pagesize argument (without _ ) is accepted. This argument is also the one defined in zscaler/zia/__init__.py
But when a pagesize is given, the returned page has a size of 100, regardless of the pagesize. Because the returned page is smaller than the pagesize the SDK als immediately stops retrieving additional pages.
The affected tenant has a lot of users so it is not the case that there are only a hundred users.
Expected behavior
Any pagesize of lengths 100 - 10,000 will return in pages being returned of that size. The SDK keeps retrieving pages of that size untill all users are retrieved.
Is it a regression?
This is the first time we are trying this using the SDK
Debug Logs
Logs can be provided through ticket if required
Other Information
OS: Windows
SDK Version: 0.10.1
Additional context
N.A
The text was updated successfully, but these errors were encountered:
Hello, I was on the way to open the same issue.
I have encountered this paging issue across all zia functions. Same limitation, the page size is fixed in 100. I need this to be fixed to be able to extract all users in my organization.
I also noticed that there is not start page argument, that would help start from a certain point when the rate limit is reached and the token expires after waiting.
Description
The issue is twofold. First of all the docstrings for
zscaler/zia/users.py
statee that list_users() takes apage_size
argument. This argument throws an error but apagesize
argument (without _ ) is accepted. This argument is also the one defined inzscaler/zia/__init__.py
But when a pagesize is given, the returned page has a size of 100, regardless of the pagesize. Because the returned page is smaller than the pagesize the SDK als immediately stops retrieving additional pages.
The affected tenant has a lot of users so it is not the case that there are only a hundred users.
Reproduction
all_users = zia.users.list_users(pagesize=200)
Expected behavior
Any pagesize of lengths 100 - 10,000 will return in pages being returned of that size. The SDK keeps retrieving pages of that size untill all users are retrieved.
Is it a regression?
This is the first time we are trying this using the SDK
Debug Logs
Logs can be provided through ticket if required
Other Information
Additional context
N.A
The text was updated successfully, but these errors were encountered: