Auth0 SDK API Limits

Hi,
I notice the error below when i read 50 users (only 17 users exist in lower environment). Please help me understand the rate limits in different environments.
For every user, roles call is made.
Error ManagementApiError: Global limit has been reached
at UsersManager.parseError (file:///var/task/node_modules/auth0/dist/esm/management/management-client.js:29:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async UsersManager.request (file:///var/task/node_modules/auth0/dist/esm/lib/runtime.js:102:23)
at async UsersManager.getRoles (file:///var/task/node_modules/auth0/dist/esm/management/__generated/managers/users-manager.js:359:26)
at async file:///var/task/readUser.mjs:254:23
at async Promise.all (index 6)
at async Runtime.readUsers (file:///var/task/readUser.mjs:252:28) {
errorCode: ‘too_many_requests’,
error: ‘Too Many Requests’,
statusCode: 429,
body: ‘{“statusCode”:429,“error”:“Too Many Requests”,“message”:“Global limit has been reached”,“errorCode”:“too_many_requests”}’,
headers: Headers {
date: ‘Tue, 29 Apr 2025 01:00:17 GMT’,
‘content-type’: ‘application/json; charset=utf-8’,
‘content-length’: ‘120’,
connection: ‘keep-alive’,
‘cf-ray’: ‘937adc936a92b298-PDX’,
‘cf-cache-status’: ‘DYNAMIC’,
‘retry-after’: ‘1’,
‘cache-control’: ‘no-cache’,
‘strict-transport-security’: ‘max-age=31536000; includeSubDomains’,
vary: ‘origin, Accept-Encoding’,
‘access-control-expose-headers’: ‘WWW-Authenticate,Server-Authorization’,
‘x-auth0-l’: ‘0.008’,
‘x-content-type-options’: ‘nosniff’,
‘x-ratelimit-limit’: ‘10’,
‘x-ratelimit-remaining’: ‘0’,
‘x-ratelimit-reset’: ‘1745888419’,
server: ‘cloudflare’,
‘alt-svc’: ‘h3=“:443”; ma=86400’
},
msg: ‘Global limit has been reached’
}

Thanks in advance!

Hi @sathya.srinivasan,

Thanks for your question.

The error trace you shared indicates that you have reached a global limit for the Management API, specifically with calling the UsersManager.getRoles method, due to making too many requests in a short period.

For a detailed breakdown of the Management API rate limits, I recommend reviewing our Enterprise Rate Limit Configurations documentation.

You may also find our Rate Limit Policy useful.

Let me know if you have any follow-up questions.

Best,
Rueben

1 Like

Hi Rueben,

Thank you so much for the prompt response. We are using Auth0 SDK. In your document, i see only APIs listed. How to translate the methods we use to the endpoint listed? For both SDK/API will that limit specified in the doc apply?

Thanks in advance!

1 Like

Hi @sathya.srinivasan,

Thanks for the reply.

Great question! To translate the methods to their corresponding endpoints in the Management API reference, start by identifying the resource category and then look for the matching endpoint.

For example, with the UsersManager.getRoles method, start by checking under the Users resource on the Management API reference, and look for the Get a role endpoint.

Kind regards,
Rueben

1 Like