Note: Liferay Portal has three types of resources, each having associated permissions:

  1. Portlet Resource: Permissions associated with the UI of the portlet, such as permission to VIEW the portlet.
  2. Top-Level Model Resource: Permissions associated with the database entity itself, such as permission to ADD a row.
  3. Row-Level Model Resource: Permissions associated with individual rows of the database entity, such as permission to UPDATE a row.

portal:permissionsURL

PermissionsURL is a UIOutput component that generates a URL pointing to the Liferay Portal Permissions UI. If the var attribute is present, the component introduces a variable into the EL. Otherwise, the URL is written to the response.

Row-Level Usage

Access the Row-Level Model Resource Permissions by specifying the Fully-Qualified Class Name (FQCN) of the ServiceBuilder model via the modelResource attribute and the primary key of the row via the resourcePrimKey attribute.
https://www.liferayfaces.org:443/nl/portal-showcase?p_p_id=com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet&p_p_lifecycle=0&p_p_state=maximized&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_mvcPath=%2Fedit_permissions.jsp&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_redirect=%2Fnl%2Fweb%2Fguest%2Fportal-showcase%2F-%2Fportal-tag%2Fportal%2Fpermissionsurl%2Frowlevel&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_returnToFullPageURL=%2Fnl%2Fweb%2Fguest%2Fportal-showcase%2F-%2Fportal-tag%2Fportal%2Fpermissionsurl%2Frowlevel&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletConfiguration=true&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletResource=1_WAR_comliferayfacesdemoportalshowcaseportlet&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_modelResource=com.liferay.portal.kernel.model.Group&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_modelResourceDescription=%3C%3Fxml+version%3D%271.0%27+encoding%3D%27UTF-8%27%3F%3E%3Croot+available-locales%3D%22en_US%22+default-locale%3D%22en_US%22%3E%3CName+language-id%3D%22en_US%22%3EGuest%3C%2FName%3E%3C%2Froot%3E&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_resourceGroupId=20121&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_resourcePrimKey=20121

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" xmlns:portal="http://liferay.com/faces/portal">

	<c:set var="group" value="#{liferay.themeDisplay.scopeGroup}" />
	<portal:permissionsURL modelResource="com.liferay.portal.kernel.model.Group" modelResourceDescription="#{group.name}"
		resourcePrimKey="#{group.groupId}" var="permissionsURL" />
	<pre>#{permissionsURL}</pre>
	<h:panelGroup rendered="#{liferay.userHasPortletPermission['PERMISSIONS']}">
		<a href="#{permissionsURL}">#{i18n['permissions']}</a>
	</h:panelGroup>

</ui:composition>
Liferay Faces Bridge Implementation 5.0.0 + Liferay Faces Portal 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20