# User groups, roles, and permissions are stale after updating on manage.auth0.com

**URL:** <https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [April 25, 2019, 9:06pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462 "2019-04-25T21:06:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwiechma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kwiechma/32/11806_2.png) [@kwiechma](https://community.auth0.com/u/kwiechma)\
**Post date:** [April 25, 2019, 9:06pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/1 "2019-04-25T21:06:39Z")

</div>

Hello,

New to the Auth) world but not the realm of SSO. Using the free tier to develop a POC on Drupal 8.

Have created a Rule so that some additional user information can be passed with the identityToken. Specifically, the user’s groups, roles, and permissions are what I am looking to pass back from the Auth0 SaaS server. The user info for the first request matches. If I later go back and add/remove user attributes on [manage.auth0.com](http://manage.auth0.com), the subsequent requests remain the same and do not reflect the updates. It appears that there is some caching occurring inside Auth0 as console.log messages show the source of the information is stale.

Please advise.

AdvThanksance!!!

---

<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:** [April 25, 2019, 10:01pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/3 "2019-04-25T22:01:56Z")

</div>

Hi @kwiechma,

Could you post the code for the rule? How are you storing the group/roles/permissions?

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![kwiechma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kwiechma/32/11806_2.png) [@kwiechma](https://community.auth0.com/u/kwiechma)\
**Post date:** [April 26, 2019, 1:19pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/5 "2019-04-26T13:19:07Z")

</div>

Hi @dan.woda,

Thanks for the response. Here is the rule code that was requested and some additional information which may be useful:

**Perms rule code:**  
`function (user, context, callback) {
console.log(‘==> perms rule’);
const namespace = ‘https://jnj.com/’;
context.idToken[namespace + ‘permissions’] = user.permissions;
context.idToken[namespace + ‘groups’] = user.groups;
context.idToken[namespace + ‘roles’] = user.roles;
console.log(‘user.permissions ->’);
console.log(user.permissions);
console.log(‘user.groups ->’);
console.log(user.groups);
console.log(‘user.roles ->’);
console.log(user.roles);
console.log(‘<== perms rule’);
callback(null, user, context);
}
`

**Logs output:**  
`
8:49:36 AM: ==> perms rule
user.permissions → 
user.groups → [‘auth0.lndo.site admin’, ‘auth0.lndo.site power user’]
user.roles → 
<== perms rule
`

In [manage.auth0.com](http://manage.auth0.com), the test user is assigned one additional role that I believe should but does not appear in the logs. In the “not understood yet” category, the user roles are appearing as a _group_ rather than a _role_.

AdvThanksance!!!

---

<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:** [April 26, 2019, 5:21pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/6 "2019-04-26T17:21:24Z")

</div>

Are you managing and changing the user roles/groups/permissions in the authorization extension? And are you making sure to configure rules/groups/permissions toggled on and publish after the changes? Also are you choosing to persist the data in the users app\_metadata (this is not required, just a choice)?

 ![02%20AM](https://global.discourse-cdn.com/auth0/original/2X/d/dea94836d29753fa0dbb399172ba45ebd34e465e.png)

---

<div class="post-metadata">

**Author:** ![kwiechma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kwiechma/32/11806_2.png) [@kwiechma](https://community.auth0.com/u/kwiechma)\
**Post date:** [April 26, 2019, 8:39pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/7 "2019-04-26T20:39:11Z")

</div>

Hi @dan.woda

Thank you for your prompt and useful response. The disconnect was that there are two similar areas: **users/roles** for the main dashboard and **users/groups/roles/permissions** for the extension. Being new to the Auth0 way, I being confused when seeing the differences but not really registering at the time.

Kevin

---

<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:** [May 11, 2019, 8:46pm UTC](https://community.auth0.com/t/user-groups-roles-and-permissions-are-stale-after-updating-on-manage-auth0-com/24462/8 "2019-05-11T20:46:45Z")

</div>

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