diff --git a/export-import/export-import-api/src/main/java/org/keycloak/exportimport/util/ExportUtils.java b/export-import/export-import-api/src/main/java/org/keycloak/exportimport/util/ExportUtils.java index 8165471c3e..a3396e3f1a 100755 --- a/export-import/export-import-api/src/main/java/org/keycloak/exportimport/util/ExportUtils.java +++ b/export-import/export-import-api/src/main/java/org/keycloak/exportimport/util/ExportUtils.java @@ -46,16 +46,6 @@ public class ExportUtils { public static RealmRepresentation exportRealm(KeycloakSession session, RealmModel realm, boolean includeUsers) { RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, true); - // Audit - rep.setEventsEnabled(realm.isEventsEnabled()); - if (realm.getEventsExpiration() != 0) { - rep.setEventsExpiration(realm.getEventsExpiration()); - } - - if (realm.getEventsListeners() != null) { - rep.setEventsListeners(new LinkedList(realm.getEventsListeners())); - } - // Clients List clients = realm.getClients(); List clientReps = new ArrayList<>(); diff --git a/model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java b/model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java index 3c634b256d..9f0f36589c 100755 --- a/model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java +++ b/model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java @@ -129,6 +129,9 @@ public class ModelToRepresentation { rep.setEnabledEventTypes(new LinkedList(realm.getEnabledEventTypes())); } + rep.setAdminEventsEnabled(realm.isAdminEventsEnabled()); + rep.setAdminEventsDetailsEnabled(realm.isAdminEventsDetailsEnabled()); + rep.setVerifyEmail(realm.isVerifyEmail()); rep.setResetPasswordAllowed(realm.isResetPasswordAllowed()); rep.setEditUsernameAllowed(realm.isEditUsernameAllowed());