I am using GET /groups/{group_id}/members to get users associated with a particular group.
I am using pagination as I am having more than 25 users to get all 30 users associated with a group like below.
groups/GROUP_ID/members?per_page=25&page=1 (sends info for 25 users, Response time on local 13.05 seconds)
groups/GROUP_ID/members?per_page=25&page=2 ( sends info for 5 users, Response time on local
1.30 seconds)
This gives me all the 30 users associated with the group & works fine.
The only issue I am having is a slow response from auth0 see for 25 users it took 13.05 sec.
My worry is if my user base increases to 1000+ it would take a lot of time.
Let’s say I have 1000 users, response for 25 users is 13.05.
So to get USers data for 1000, I need to call API multiple times ( 40 times) & it would take 522 seconds. That’s the huge response time.
Just for clarity, are you running this script from your local machine? I am still not seeing this much latency and that makes me think it is something with your connection/firewall.