Skip to content

Scheduling infrastructure for absolutely everyone.

feat: show organization username in impersonation banner (#24313)

Hariom Balhara64f811ed0b1c
diff --git a/packages/features/ee/impersonation/components/ImpersonatingBanner.tsx b/packages/features/ee/impersonation/components/ImpersonatingBanner.tsx
index 0cd39ddcf6c..a226b7e7e86 100644
--- a/packages/features/ee/impersonation/components/ImpersonatingBanner.tsx
+++ b/packages/features/ee/impersonation/components/ImpersonatingBanner.tsx
@@ -17,7 +17,7 @@ function ImpersonatingBanner({ data }: ImpersonatingBannerProps) {
return (
<>
<TopBanner
- text={t("impersonating_user_warning", { user: data.user.username })}
+ text={t("impersonating_user_warning", { user: data.user.orgAwareUsername || data.user.username })}
variant="warning"
actions={
canReturnToSelf ? (