diff --git a/model/jpa/src/main/java/org/keycloak/organization/jpa/OrganizationAdapter.java b/model/jpa/src/main/java/org/keycloak/organization/jpa/OrganizationAdapter.java index 02356329ab..6f7915e311 100644 --- a/model/jpa/src/main/java/org/keycloak/organization/jpa/OrganizationAdapter.java +++ b/model/jpa/src/main/java/org/keycloak/organization/jpa/OrganizationAdapter.java @@ -155,6 +155,7 @@ public final class OrganizationAdapter implements OrganizationModel, JpaModel { if (Objects.equals(domainEntity.getName(), idp.getConfig().get(ORGANIZATION_DOMAIN_ATTRIBUTE))) { idp.getConfig().remove(ORGANIZATION_DOMAIN_ATTRIBUTE); + realm.updateIdentityProvider(idp); } }); }