Number of users in response

Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:28:07 +0000.
Sender:Ian Harris.
Date:Tuesday, 20 October 2015 16:25:08 UTC+1.

Hi,

Is there a limit imposed on the number of records returned when listing users with /api/users/ and a super user authorization key?

Thanks,
Ian.

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 20 October 2015 16:35:14 UTC+1.

Hi Ian,

Yes there is, it’s controlled in two ways:
You can set the page size in the tyk_analytics.conf file using “page_size”: x
Use the page modifier in your API request : /api/users?p=x
You will notice that the response object from the advanced API has a “pages: x” value to tell you how many there are.

Hope that answers things…

Cheers,
Martin

Imported Google Group message.
Sender:Ian Harris.
Date:Tuesday, 20 October 2015 16:35:14 UTC+1.

Hi Ian,

Yes there is, it’s controlled in two ways:
You can set the page size in the tyk_analytics.conf file using “page_size”: x
Use the page modifier in your API request : /api/users?p=x
You will notice that the response object from the advanced API has a “pages: x” value to tell you how many there are.

Hope that answers things…

Cheers,
Martin

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 20 October 2015 16:39:42 UTC+1.

Hi Martin,

Thanks for that. I do see it. pages: 1 for a listing with 10 entries.

I can add p=x to our requests when needed as you suggest.

Thanks that clears things up alright,
Ian.

  • show quoted text -