george.ganahl | 2022-03-22 06:45:32 UTC | #1
When sending a GET using https://developer.genesys.cloud/api/rest/v2/users/#get-api-v2-users what is the maximum number of users that will be returned if the pageSize entry is left blank?
How about when designating pageSize...max number that will work?
I may need to pull back 10,000+ users eventually...
Eos_Rios | 2022-03-22 00:59:10 UTC | #2
Paging is covered here using this API as an example.
You don't directly specify how many pages come back.
You specify how many records per page (pageSize), the system determines how many pages you get back based on the total amount meeting your criteria divided by the records per page you specified.
If you fail to specify a pageSize the defaults from the link you posted are used;
I believe the maximum pageSize is 100 for users, if you ask for more than whatever the max is it will either reduce to the max, or reduce it to the default. Behavior around that can vary from API to API.
george.ganahl | 2022-03-22 06:47:08 UTC | #3
Thanks! I had a brain fade when I typed that question. I was thinking pageSize/number of users, so the link you provided was just what I needed. I also finally connected to an org with over 500 users and was able to verify that it will return a max pageSize of 500.
I edited my original question for clarity if someone searches for the same info.
system | 2022-04-22 06:43:03 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13993