Legacy Knowledge Base
Published Sep. 10, 2025

Users removed from an LDAP server are not being removed from the Liferay user group UI when a custom service wrapper utilizes deleteUserGroupUsers(long userGroupId, long[] userIds)

Written By

Brian Suh

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

  • Users removed from an LDAP server are not being removed from the Liferay user group UI when a custom service wrapper utilizes the deleteUserGroupUsers(long userGroupId, long[] userIds) method.
  • In this case, when users are removed from LDAP server using this method, they are also successfully removed from both the LDAP server and the Users_UserGroups database table. However, the user group still appears under the User Groups section in the UI.
  • The user is removed from the user group if a reindex is performed.

Environment

  • Liferay DXP Quarterly Releases

Resolution

  • The deleteUserGroupUsers(long userGroupId, long[] userIds) method does not have any directives to reindex.
  • Please ensure that your customization includes a reindex call after deleting the users.

Liferay Support ensures Liferay DXP's core code functions correctly. However, if you need help troubleshooting, designing, or developing your custom solutions, please connect with your Liferay Account Executive to discuss expanded support options.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base