Legacy Knowledge Base
Published Jun. 30, 2025

How to provide permission to Fragments

Written By

Kanchan Bisht

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

  • Does DXP have permission feasibility with fragments?

Environment

  • Liferay DXP  [all versions]

Resolution

  • There is no way to directly control the visibility of a Fragment depending on the user accessing the page.
  • These LPS-132082 and LPS-166820 have been created to add permissions on Fragments to control which users can add which fragments to a page.

Additional Information

  • The following workaround which users can see if it is feasible at their end:
    This could be handled by Page Experiences. By creating the whole page for a specific role:
    • They would avoid a possibly huge performance impact that would come from Liferay implementing fragment based permission checking
    • They would be able to control who gets to see what
    • They would always be able to see the fully rendered page
Did this article resolve your issue ?

Legacy Knowledge Base