legacy-knowledge-base
公開されました 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

learn-legacy-article-disclaimer-text

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