Hello there,
I’m using pagination to retrieve users for my backend at the endpoint /api/v2/users, which is working well. However, I have reached the limit of 1000 users, which is the maximum number of users this method/endpoint can retrieve.
To overcome this limitation, I’ve attempted to use the import-export extension jobs offered by Auth0, but I only get the following response: {“statusCode”:404,“error”:“Not Found”,“message”:“Not Found”}
I’m sharing a code snippet of the curl request that I’m using:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => “https://yadayada.eu.auth0.com/api/v2/jobs/user-exports”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS => “{“format”: “json”, “export_as”: “provider” }”,
CURLOPT_HTTPHEADER => array(
"authorization: Bearer ".$token,
“cache-control: application/json”
),
));
$response = curl_exec($curl);
If anyone has any advice or can offer any help, it would be much appreciated. Thank you!