Rate Limit Issue using Management API in Post-Login Action

It was suggested to use management api from an action script like in a post-login action in this knowledge article: 64947

But how do you solve rate limit exceptions if you have a lot of users doing post login.

The scenario is to retrieve/update roles specific to member of an organization

Hi @atalens,

Welcome to the Auth0 Community!

You can cache the Management API access token in your action. Please see this Community post for more: Caching Management API Access Tokens in Login Action

Thanks,

Mary Beth

It is not caching of the token I’m concerned about but the management api calls that is bound to the the rate limit exception. If Auth0 is suggesting to call the management api in a post-login action, the rate limit can be easily reached if there are a lot of users logging in

Hi @atalens,

I understand - can you confirm which plan we’re talking about? I see your account is associated with both Free and Enterprise plans. To better look into this, I need to know the appropriate rate limit configurations.

Thanks,

Mary Beth

for the enterprise plan. We want to retrieve/update members of organization and their role in a post login action

Hi @atalens,

Thank you for confirming! The Enterprise plan has specific rate limits listed for certain organization endpoints: Enterprise

I understand the concern here. You can look into implementing exponential backoff or throttling requests (batch operations or delays between calls). Since you have an Enterprise plan, I would encourage you also to open a support ticket for more assistance on this.

Thanks,

Mary Beth

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.