Skip to main content
Solved

Limit in scim users query

  • February 17, 2023
  • 2 replies
  • 315 views

aatienza
Netskope Partner
Forum|alt.badge.img+3

Hi,

 

I have a tenant with more than 10000 users (integration Azure via scim)


I need to get the scim_user_id of all of them, to add some to some groups manually (postman)


I'm doing the query with postman using "SCIM - List all Users", which is basically doing get {{scimurl}}/Users

 

The answer is ok, but incomplete.  I see "totalResults": 16717, but it only returns 1000.
"itemsPerPage": 1000,
"startIndex": 1

 

Is it possible to get a complete list with all 16000 users?
Is there a way to paginate it?

 

I thought it would be a postman limitation, but doing the query with a curl (linux command) the result is the same.

Any ideas?

 

 

Thanks in advance!

Best regards

 

Best answer by Michael Koyfman

You have to to use additional parameters to either paginate or retrieve higher number of records in a single call.  See below:

 

https://addon-<tenant>.goskope.com/SCIM/V2/<org ID>/Users?startIndex=1&count=<integer>

 

Without StartIndex and Count, default number of records are 1000 in per call.I have tested 29335 users' records have been succesfully retrived per-call by putting count number as 30000.

 

 

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+15
  • Netskope Employee
  • Answer
  • February 19, 2023

You have to to use additional parameters to either paginate or retrieve higher number of records in a single call.  See below:

 

https://addon-<tenant>.goskope.com/SCIM/V2/<org ID>/Users?startIndex=1&count=<integer>

 

Without StartIndex and Count, default number of records are 1000 in per call.I have tested 29335 users' records have been succesfully retrived per-call by putting count number as 30000.

 

 


aatienza
Netskope Partner
Forum|alt.badge.img+3
  • Author
  • Netskope Partner
  • February 20, 2023

Hi @mkoyfman 

Adding startIndex and count, works perfect!

Allow me one more question. This is the information I was looking for and I did not find anything about it, is this information public?

Thanks!!!