diff --git a/webapp/packages/core-authentication/src/UsersResource.ts b/webapp/packages/core-authentication/src/UsersResource.ts index 050b73b360..02541f888c 100644 --- a/webapp/packages/core-authentication/src/UsersResource.ts +++ b/webapp/packages/core-authentication/src/UsersResource.ts @@ -100,9 +100,9 @@ export class UsersResource extends CachedMapResource { this.set(userId, user as AdminUserInfo); try { - this.updateCredentials(userId, credentials); + await this.updateCredentials(userId, credentials); for (const roleId of roles) { - await this.grantRole(userId, roleId); + await this.grantRole(userId, roleId, true); } await this.setConnections(userId, grantedConnections);