Global user gets duplicated as a local user when logging in sub-wiki url

Hi everyone!

When a global user uses a sub-wiki URL to log-in, they get duplicated as a local user. Is there a way to prevent this? My current workaround is to explicitly say that global users should log-in and -out of the main wiki but it would be great if this could be prevented as it also causes problems with rights and permissions. Is there a way how to fix this?

Thanks in advance!

1 Like

You will have to give more details than that.

Which version of XWiki is that ?

Are you getting that with the standard authenticator, or have you configured another one ?

Hi! The version we are using is 15.6. We have our own LDAP Authentication but we are creating users using XWiki (which uses XWiki Authenticator).

If you are talking about the XWiki#createUser API then in which wiki the user is created is still a choice of the authenticator. So you will have to fix it there by setting the right wiki in the context before calling #createUser.

additional info: we are using xwiki-tomcat9-pgsql/stable 15.6 on ubuntu 22.04 with LDAP Authenticator (org.xwiki.contrib.ldap:ldap-authenticator) version 9.11.2

Does your response still apply? :slight_smile: Thank you so much for helping us out. :slight_smile:

You might want to take a look at https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/UseCases/#HI27minamultiwikienvironmentandIwantmyLDAPuserstoregisteronlyonthemainwiki then.