6 Replies Latest reply on Jul 7, 2014 1:09 PM by 842015

    How to get user role in JSR 286 portlet?



      I am converting taskflow into portlet.

      For getting userid from security i am using below code

              PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();

              String user = req.getRemoteUser();

      In this way i am getting the user logged in but not the role.


      How do i get the role?