Legacy Knowledge Base
Published Sep. 10, 2025

Inconsistent Roles in Assign/Unassign Dialogs After Upgrade

Written By

Julián Vela Cubas

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 upgrading from Liferay DXP 7.2 to 2025.Q1, there are inconsistencies in the Site Roles displayed for users. While the main members list shows the correct roles for a user, the "Assign Roles" and "Unassign Roles" dialogs show a different, incorrect list. For example, a role that a user already possesses might still appear as available to be assigned, and it might be missing from the list of roles to unassign.

Environment

  • Liferay 2025.Q1+
  • Upgrading from Liferay DXP 7.2

Resolution

This behavior is caused by a combination of a product bug and the expected behavior of how inherited roles are handled.

  1. Product Bug (LPD-53010): A bug was identified where the role assignment dialog did not correctly filter roles by the current site. This issue is resolved in DXP 2025.Q1.6 and later versions. Applying the latest updates is recommended.
  2. Expected Behavior with Inherited Roles: It is important to understand how Liferay handles roles inherited from User Groups.
    • A user's effective roles within a site are a combination of roles assigned directly to them and roles inherited from any User Group they are a member of.
    • The main member list in a site displays all of these effective roles.
    • However, the "Assign Roles" and "Unassign Roles" dialogs are designed to manage only the roles assigned directly to the user.
    • Therefore, if a user has a role (e.g., Site Administrator) because they are in a User Group that has been granted that role for the site, that role will still appear as available to be assigned directly to the user. This is the expected behavior.

To manage roles correctly, administrators should be aware of this distinction and decide whether to manage permissions at the individual user level or at the User Group level.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base