# What is the best practice of getting noticed when roles of users are changed

**URL:** <https://community.auth0.com/t/what-is-the-best-practice-of-getting-noticed-when-roles-of-users-are-changed/66203>\
**Category:** Get Help\
**Tags:** role\
**Created:** [July 15, 2021, 7:26am UTC](https://community.auth0.com/t/what-is-the-best-practice-of-getting-noticed-when-roles-of-users-are-changed/66203 "2021-07-15T07:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![json](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/json/32/26230_2.png) [@json](https://community.auth0.com/u/json)\
**Post date:** [July 15, 2021, 7:26am UTC](https://community.auth0.com/t/what-is-the-best-practice-of-getting-noticed-when-roles-of-users-are-changed/66203/1 "2021-07-15T07:26:17Z")

</div>

I want to manage the roles of users via Auth0.  
But I don’t know how to apply immediately the roles of users when it is changed.

For example, I want that the user can’t see private resources immediately when I remove the “private” role from Auth0.  
Is it possible?

---

<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:** [July 15, 2021, 9:52pm UTC](https://community.auth0.com/t/what-is-the-best-practice-of-getting-noticed-when-roles-of-users-are-changed/66203/3 "2021-07-15T21:52:43Z")

</div>

Hi @json,

The only way to know the user’s roles immediately would be to check against the management API. This could cause some issues with [rate limits](https://auth0.com/docs/policies/rate-limit-policy) if you are expecting to do this a lot.

The recommended way to handle this type of requirement would be to use short lived tokens. You could make a token lifetime very short (5 minutes for example), which would mean that the user’s current permissions are within 5 minutes of the changes.

---

<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:** [July 30, 2021, 9:52pm UTC](https://community.auth0.com/t/what-is-the-best-practice-of-getting-noticed-when-roles-of-users-are-changed/66203/4 "2021-07-30T21:52:55Z")

</div>

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