How to set custom page for "You do not have the roles required to access this portlet" error

Issue

  • Custom pages for 404 errors can be easily configured in DXP; however, how can a custom page be designed for the "You do not have the roles required to access this portlet" error?

Environment

  • Liferay DXP 7.4

Resolution

  • There is no OOTB functionality to achieve the requested requirement here, however, users can try to create the error message in 'portlet access denied.jsp' since the error originated from this JSP file ({liferay_home}\tomcat\webapps\ROOT\html\portal). 
  • Please see this article which might be helpful here: Customizing JSPs with Dynamic Includes

Additional Information

  • We have a separate channel named "Global Service Team" where users may seek help with any type of implementation or customization.
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0