Legacy Knowledge Base
Published Jun. 30, 2025

All existing groups are imported from LDAP after logging in with a user

Written By

Christopher Czibere

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After logging in with an LDAP user, all existing groups are imported from the LDAP server.
  • In earlier versions (DXP 7.1 and DXP 7.2) only the groups to which the user has been assigned are imported.

Environment

  • Liferay DXP 7.3
  • Liferay DXP 7.4

Resolution

  • This behaviour is intended and is a consequence of a required change in LPS-142044
  • This change was made to be able to track which user groups the imported user belongs to if multiple LDAP servers are configured.
  • In short, the following problem was solved:

The problem with the "User" method is that it breaks when the same user belongs to multiple LDAP servers that have different sets of groups between them. When this happens, whichever LDAP server was processed last during the import process will have the final say on which groups the user belongs to. If it sees that in Liferay, the user belongs to any LDAP groups that aren't part of the server, it will remove the user from those groups (even if the user is a part of those groups on a different LDAP server).

Did this article resolve your issue ?

Legacy Knowledge Base