2 Replies Latest reply on Feb 22, 2010 1:19 PM by Narendra Shekhawat

    how to get user ID of logged in user ?

    Narendra Shekhawat Newbie
      Hi all,

         i can get user name as follows:

      if(Identity.instance().isLoggedIn())
            return Identity.instance().getPrincipal().getName();

      my question is that how can I get user Id of logged in user ?

      please help me in this regard.

      Thanks & Regards,
      narendra shekhawat