# Permissions are not being updated after making changes on Authorization Extension

**URL:** <https://community.auth0.com/t/permissions-are-not-being-updated-after-making-changes-on-authorization-extension/187809>\
**Category:** Get Help\
**Tags:** auth0-authorization, extensions\
**Created:** [June 10, 2025, 1:43pm UTC](https://community.auth0.com/t/permissions-are-not-being-updated-after-making-changes-on-authorization-extension/187809 "2025-06-10T13:43:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alvaro/32/70995_2.png) [@alvaro](https://community.auth0.com/u/alvaro)\
**Post date:** [June 10, 2025, 1:43pm UTC](https://community.auth0.com/t/permissions-are-not-being-updated-after-making-changes-on-authorization-extension/187809/1 "2025-06-10T13:43:43Z")

</div>

Hey!  
I have the following situation:  
We are using **Authorization Extension v2.13.0** to create groups, roles, and permissions for users, since Auth0 by default doesn’t support groups.  
Also, we are using this post-login action script:

```auto
exports.onExecutePostLogin = async (event, api) => {
  console.log("Adding permissions claim to JWT...")

  if (event.authorization) {
    try {
      const namespace = 'https://me.com/permissions';
      api.idToken.setCustomClaim(namespace, event.user.authorization.permissions);
      api.accessToken.setCustomClaim(namespace, event.user.authorization.permissions);

    } catch(error) {
      console.error(error);
      throw new Error('Failed getting user permissions');
    }
  }
}

```

The problem is that I need to log in and log out twice so the new changes made in Authorization Extension v2.13.0 are added in event.user.authorization.permissions, probably because Auth0 is caching the permissions.

So is there a way to avoid this situation, or force the refresh of the data?  
Thanks in advance!  
Alvaro

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [June 10, 2025, 4:53pm UTC](https://community.auth0.com/t/permissions-are-not-being-updated-after-making-changes-on-authorization-extension/187809/3 "2025-06-10T16:53:38Z")

</div>

Hi @alvaro

Welcome to the Auth0 Community!

Since the permissions are updated in the tokens during a post login action, unless the user re-authenticates the new permissions changed by the extension are not visible inside the user profile. Usually, this should take a single re-authentication from the user, not two.

I would advise to either force re-authentication of the user when these permissions are updated or refresh their token so that it includes the updated ones.

If you have any other questions, let me know!

Kind Regards,  
Nik

---

<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:** [June 24, 2025, 4:54pm UTC](https://community.auth0.com/t/permissions-are-not-being-updated-after-making-changes-on-authorization-extension/187809/4 "2025-06-24T16:54:11Z")

</div>

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