CUC Forums

« Back to CUPI Questions

get user count in cuc7.1

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
In 8.x you can specify i.e. /vmrest/users?rowsPerPage=0 to get the number of users,
which is an attribute in the root element (Users)
But in cuc7.1 the request is not accepted (A syntax error has occurred.).
 
Can I retrieve ALL users in one request if there are i.e. 10,000 ?
like /vmrest/users
 
In 8.x we can paginate in blocks of i.e. 100 users but need to know the number of users

Hi,
In 8.x you can specify i.e. /vmrest/users?rowsPerPage=0 to get the number of users,
which is an attribute in the root element (Users)
But in cuc7.1 the request is not accepted (A syntax error has occurred.).
 
Can I retrieve ALL users in one request if there are i.e. 10,000 ?
like /vmrest/users
 
In 8.x we can paginate in blocks of i.e. 100 users but need to know the number of users

 
We are running v 7.mumble and I just loop over all the users 50 at a time until there is nothing left.  We are just over 2000 users.  I had other reasons at the time to want to limit the number of rows returned.  All of my code is written in PL/SQL and runs in Oracle if you are interested.  Actually, most of the PL/SQL is mechanically generated - saves on lots of typos in the code.

Hi,

Thanks, I had already found that same solution but didn't post my findings yet ;-)

I am using Java, but thanks for your offer

regards
Sascha