Forum Discussion

allensmith81's avatar
7 years ago

Extracting role user list via API v2

Hi all,

 

in 18.5 a bug was introduced which means you can not export a user list from the admin metrics if the number of results is over 50 lines. (Something about the PM process doesnt start)

Anyway while lithium were working on a fix I decided I wanted to write an API call to allow me to extract this to a user file but I keep getting duplicate results in the file by like a few hundred.

The API Call I am using is:

SELECT id,email FROM users WHERE roles.id='t:<rolename>' ORDER BY registration_data.registration_time ASC LIMIT 1000 OFFSET <increment>

Increment is always by 1000 i.e.

Run                Increment Value

10
21000
32000
43000
54000
65000

 

It seems to get progressively worse and sometimes its like it loads 20 results from 3 pages ago.

No RepliesBe the first to reply