# Why is the Autorization API so slow?

**URL:** <https://community.auth0.com/t/why-is-the-autorization-api-so-slow/51303>\
**Category:** Get Help\
**Tags:** api-authorization, authorization-extens, authorization\
**Created:** [October 9, 2020, 9:42am UTC](https://community.auth0.com/t/why-is-the-autorization-api-so-slow/51303 "2020-10-09T09:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![william.ollivier](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/william.ollivier/32/24818_2.png) [@william.ollivier](https://community.auth0.com/u/william.ollivier)\
**Post date:** [October 9, 2020, 9:42am UTC](https://community.auth0.com/t/why-is-the-autorization-api-so-slow/51303/1 "2020-10-09T09:42:32Z")

</div>

Hello,

I have implemented an API endpoint to delete an entity tied to a group in the Auth0 Autorization world.  
Here is the workflow:

1. List all group members
2. Remove all group members from group (1 call with list of user ids)
3. For each user  
a. execute autorization policy ([https://auth0.com/docs/api/authorization-extension#execute-authorization-policy](https://auth0.com/docs/api/authorization-extension#execute-authorization-policy))  
b. update the user metadata with the authorization policy (through the management API)
4. Remove group from parent group
5. Delete group

For a group with a single user, the whole flow takes close to 8 seconds, which I don’t think is really acceptable.

Could someone let me know why the authorization API is so slow, and it response time can be improved, how to do so?

Many thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 13, 2020, 9:25pm UTC](https://community.auth0.com/t/why-is-the-autorization-api-so-slow/51303/3 "2020-10-13T21:25:34Z")

</div>

Hi @william.ollivier,

Welcome back!

Are you still seeing this type of round trip times? I did some testing with postman and was getting faster response times, more in line with our other API services.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 28, 2020, 9:25pm UTC](https://community.auth0.com/t/why-is-the-autorization-api-so-slow/51303/4 "2020-10-28T21:25:39Z")

</div>

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