# Changing a user's role should have an immediate effect

**URL:** <https://community.auth0.com/t/changing-a-users-role-should-have-an-immediate-effect/92477>\
**Category:** Get Help\
**Tags:** auth0, roles\
**Created:** [October 16, 2022, 12:52am UTC](https://community.auth0.com/t/changing-a-users-role-should-have-an-immediate-effect/92477 "2022-10-16T00:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![torbdahl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/torbdahl/32/29840_2.png) [@torbdahl](https://community.auth0.com/u/torbdahl)\
**Post date:** [October 16, 2022, 12:52am UTC](https://community.auth0.com/t/changing-a-users-role-should-have-an-immediate-effect/92477/1 "2022-10-16T00:52:02Z")

</div>

I have an application with multiple user roles. The roles are put in the JWT access token given by Auth0 after a user logs in.

As an administrator, I would like a user’s access token to change immediately after I change that user’s role.

However, the user have to log out and log in again for the role change to have an effect.

Is there any other way to achieve an immediate effect after changing a user’s role?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 19, 2022, 1:42am UTC](https://community.auth0.com/t/changing-a-users-role-should-have-an-immediate-effect/92477/3 "2022-10-19T01:42:07Z")

</div>

Hey there @torbdahl!

> [@torbdahl](#):
>
> Is there any other way to achieve an immediate effect after changing a user’s role?

You will need to re-authorize the user in order to get the new roles in token(s), but you should be able to achieve this without requiring user interaction using silent auth:

> **[Configure Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication)**
>
> Learn how to keep users logged in to your application using silent authentication.

Hope this helps!

---

<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:** [November 2, 2022, 1:42am UTC](https://community.auth0.com/t/changing-a-users-role-should-have-an-immediate-effect/92477/4 "2022-11-02T01:42:39Z")

</div>

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