6 Replies Latest reply: Jul 7, 2014 8:09 AM by 842015 RSS

    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?