diff --git a/src/main/java/org/rciam/plugins/groups/jpa/repositories/GroupEnrollmentConfigurationRepository.java b/src/main/java/org/rciam/plugins/groups/jpa/repositories/GroupEnrollmentConfigurationRepository.java index 3b3069a..22b0d81 100644 --- a/src/main/java/org/rciam/plugins/groups/jpa/repositories/GroupEnrollmentConfigurationRepository.java +++ b/src/main/java/org/rciam/plugins/groups/jpa/repositories/GroupEnrollmentConfigurationRepository.java @@ -80,7 +80,7 @@ public void createDefault(GroupModel group, String groupName, String realmId) { String membershipExpirationDaysDefault = configurationRulesList.stream().filter(x -> "membershipExpirationDays".equals(x.getField())).findAny().orElse(new GroupEnrollmentConfigurationRulesEntity()).getDefaultValue(); if (membershipExpirationDaysDefault != null) entity.setMembershipExpirationDays(Long.valueOf(membershipExpirationDaysDefault)); - String aupDefault = configurationRulesList.stream().filter(x -> "aupEntity.url".equals(x.getField())).findAny().orElse(new GroupEnrollmentConfigurationRulesEntity()).getDefaultValue(); + String aupDefault = configurationRulesList.stream().filter(x -> "aupEntity".equals(x.getField())).findAny().orElse(new GroupEnrollmentConfigurationRulesEntity()).getDefaultValue(); if (aupDefault != null) { GroupAupEntity aup = new GroupAupEntity(); aup.setId(KeycloakModelUtils.generateId());