Number of records returned when calling okta calls with stream

When I call
AppUserList userList = client.getDataStore().getResource(url, AppUserList.class);
where url does not specify a limit. I.E. I am specifying that I am returning all app users. I get 50 user records max.

When I call userList.stream().collect(toList()) I then I get all of the user records. Is the stream() method looping through all of the app users in Okta for the application specified in the url and getting 50 users at a time through Okta api calls and paging? If so is there a way I can call userList.stream().collect(toList()) and have it get more than 50 records at a time?

Perhaps pagination is involved here: https://developer.okta.com/docs/api/getting_started/design_principles/#pagination

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.