Solved

Limit in scim users query

  • 17 February 2023
  • 2 replies
  • 37 views

Badge +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

 

icon

Best answer by mkoyfman 19 February 2023, 21:09

View original

2 replies

Userlevel 4
Badge +14

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.

 

 

Badge +3

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!!!

 

 

Reply