Legacy Knowledge Base
Published Jul. 2, 2025

Restricting Document View Permissions in Documents and Media Repositories

Written By

Justin Choi

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.

Liferay platforms allow administrators to define permissions for all assets. In the Documents and Media repository, administrators often need to restrict privileges by defining a site role so that a site member views only the documents that he has uploaded.

Resolution

The specific permission is the Documents and Media > Documents: View property. As long as a user role has this property, any user with that role can view all documents in the Documents and Media repository, regardless of whether he is the document owner or not. Once this property is removed, users see only the documents they upload.

To demonstrate, assume there is a Site Role called Intake Personnel with the following permissions:

documents-permissions01.png

To restrict view privileges for the Intake Personnel role:

  1. Navigate to the Intake Personnel's Summary page
  2. Click Remove next to the Documents and Media > Documents:View

At this point, users with the Intake Personnel role views only the documents they upload.

Additional Information

For more information, see Roles and Permissions and Roles and Permission FAQs for more information about how to create roles and define permissions for other specific use cases.

Did this article resolve your issue ?

Legacy Knowledge Base