diff --git a/webapp/packages/core-authentication/src/UsersResource.ts b/webapp/packages/core-authentication/src/UsersResource.ts index ba1d6e8f62..8d0692960e 100644 --- a/webapp/packages/core-authentication/src/UsersResource.ts +++ b/webapp/packages/core-authentication/src/UsersResource.ts @@ -182,7 +182,15 @@ export class UsersResource extends CachedMapResource { - await this.graphQLService.sdk.setUserAuthRole({ userId, authRole }); + await this.performUpdate(userId, undefined, async () => { + await this.graphQLService.sdk.setUserAuthRole({ userId, authRole }); + + const user = this.get(userId); + + if (user) { + user.authRole = authRole; + } + }); if (!skipUpdate) { this.markOutdated(userId);