# How to refresh the token after merging user & assigning role?

**URL:** <https://community.auth0.com/t/how-to-refresh-the-token-after-merging-user-assigning-role/90143>\
**Category:** Get Help\
**Created:** [September 7, 2022, 12:42pm UTC](https://community.auth0.com/t/how-to-refresh-the-token-after-merging-user-assigning-role/90143 "2022-09-07T12:42:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [September 9, 2022, 4:20pm UTC](https://community.auth0.com/t/how-to-refresh-the-token-after-merging-user-assigning-role/90143/5 "2022-09-09T16:20:39Z")

</div>

Hey @daniel.j welcome to the community!

It looks like my colleague was able to provide a solution for this in another thread - Adding for visibility:

> [@Adding role to new user with email domain IF email is verified](https://community.auth0.com/t/adding-role-to-new-user-with-email-domain-if-email-is-verified/87957/8):
>
> Hi @daniel.j, Thanks for your response. Firstly, a Database or Social Connection will work with a Post-Login Action. Moreover, the examples shown in [this link](https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506) and [my previous post](https://community.auth0.com/t/adding-role-to-new-user-with-email-domain-if-email-is-verified/87957/3) are a Post Login Action. I am not seeing where a Post-User Reg is involved. In this sittuation, you will need to toggle off the feature that Adds permissions in the Access Token and create a Post-Login Action to add the user’s permissions and roles to the token. This will avoid doubly adding the permissions and rol…

---

_[View the full topic](https://community.auth0.com/t/how-to-refresh-the-token-after-merging-user-assigning-role/90143)._
