Import the interface:
<%@page import=”org.pentaho.platform.api.engine.IUserRoleListService” %>
then
List<String> roles = PentahoSystem.get( IUserRoleListService.class ).getAllRoles(); int rolesSize =…