Fix: prevent federated users from being listed on initial Users page load

Ensure that the Users page waits for userProfileProvidersEnabled to be defined
before fetching users. This prevents federated users from being listed by
default on first load, providing a consistent experience and avoiding confusion
when user federation is enabled.

Fixes #41044

Signed-off-by: Freeda Vales <freedavales28@gmail.com>
This commit is contained in:
Freeda Vales 2025-07-30 17:07:25 +05:30 committed by GitHub
parent 57cb321ce0
commit bcc85c2ff9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,7 @@ export function UserDataTable() {
const goToCreate = () => navigate(toAddUser({ realm: realmName }));
if (!uiRealmInfo || !realm) {
if (uiRealmInfo.userProfileProvidersEnabled === undefined || !realm) {
return <KeycloakSpinner />;
}