diff --git a/apps/admin-ui/src/user/UserForm.tsx b/apps/admin-ui/src/user/UserForm.tsx index f535fc56db..8e63e999ca 100644 --- a/apps/admin-ui/src/user/UserForm.tsx +++ b/apps/admin-ui/src/user/UserForm.tsx @@ -204,7 +204,11 @@ export const UserForm = ({ id="kc-username" aria-label={t("username")} name="username" - isReadOnly={!!user?.id && !realm?.editUsernameAllowed} + isReadOnly={ + !!user?.id && + !realm?.editUsernameAllowed && + realm?.editUsernameAllowed !== undefined + } /> )}