Nextcloud with Keycloak - new users?

Nextcloud version (eg, 20.0.5):
27.1.8

Operating system and version (eg, Ubuntu 20.04):
Debian 12

Apache or nginx version (eg, Apache 2.4.25):
NGINX 1.24

PHP version (eg, 7.4):
8.2

The issue you are facing:
A new user gets created when using the login with the Identity Provider Keycloak, which uses the LDAP, from which we logged in before. So same credentials, same root source LDAP (Keycloak just as IdP) but different users.

Is this the first time you’ve seen this error? (Y/N):
yes

Steps to replicate it:

  1. Install “OpenID Connect user backend”
  2. Connect your Keycloak
  3. Try to login via Keycloak → u get a new user instead of ur existing

Further investigation:
The both users are 99.9% the same → just the register date and id are different - same e-mail, name, password, location etc.

hi @germebl welcome to the community :handshake:

there are options in user_oidc-app to choose the user name and decide if the user is unique…

you must know which properties you use to populate the users from LDAP and consume from PoenID provider…