2 Replies Latest reply on Feb 22, 2010 1:19 PM by narendra.narendra_00001.yahoo.co.in

    how to get user ID of logged in user ?

    narendra.narendra_00001.yahoo.co.in
      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