diff --git a/apps/web/src/app/services/event.service.ts b/apps/web/src/app/services/event.service.ts index 302fe2b9cea..abb97e37311 100644 --- a/apps/web/src/app/services/event.service.ts +++ b/apps/web/src/app/services/event.service.ts @@ -280,6 +280,20 @@ export class EventService { this.getShortId(ev.organizationUserId) ); break; + case EventType.OrganizationUser_Deactivated: + msg = this.i18nService.t("revokedUserId", this.formatOrgUserId(ev)); + humanReadableMsg = this.i18nService.t( + "revokedUserId", + this.getShortId(ev.organizationUserId) + ); + break; + case EventType.OrganizationUser_Activated: + msg = this.i18nService.t("restoredUserId", this.formatOrgUserId(ev)); + humanReadableMsg = this.i18nService.t( + "restoredUserId", + this.getShortId(ev.organizationUserId) + ); + break; // Org case EventType.Organization_Updated: msg = humanReadableMsg = this.i18nService.t("editedOrgSettings"); diff --git a/libs/common/src/enums/eventType.ts b/libs/common/src/enums/eventType.ts index d6268aea559..43a45fc32d9 100644 --- a/libs/common/src/enums/eventType.ts +++ b/libs/common/src/enums/eventType.ts @@ -48,6 +48,8 @@ export enum EventType { OrganizationUser_AdminResetPassword = 1508, OrganizationUser_ResetSsoLink = 1509, OrganizationUser_FirstSsoLogin = 1510, + OrganizationUser_Deactivated = 1511, + OrganizationUser_Activated = 1512, Organization_Updated = 1600, Organization_PurgedVault = 1601,