Hello!
I have 2 LDAP servers that sync into kc, Users and Customers.
Sometimes a Customer becomes a User (without being removed from the Customer db) so when they try to login, they get an error during login: Email already exists
.
Log error: 2024-03-22 14:00:44,419 ERROR [org.keycloak.services] (executor-thread-19518) KC-SERVICES0024: : org.keycloak.models.ModelDuplicateException: Can't import user 'user42221' from LDAP because email 'xyz@company.com' already exists in Keycloak. Existing user with this email is 'customer42221'
I usually circumvent this by clearing the cache for the Customer Federation bucket but I was hoping for a more permanent solution. I was hoping that the sync that happens in keycloak would not pull records with an email that already exists.
Thanks in advance.
Peter