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
- Master revision of UserLocalServiceUtil.java