Capture id of user in Portal

Sort:
You are not authorized to post a reply.
Author
Messages
SusanA
New Member
Posts: 2
New Member

    I need to capture the id the user logged into Portal .  I've tried using the info from previous posts but with no luck.  I'd like to do this using javascript.

    Susan

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Are you using Design Studio? If so you can use:
      var userid=portalWnd.oUserProfile.getAttribute("lawsonuserlogin")
      David Williams
      SusanA
      New Member
      Posts: 2
      New Member

        Unforturnately we don't have Design Studio.  We have a few custom apps that we developed using Java, jsp,  and javascript.  In our 8 environment (not Portal) we just grabbed the userid from a hidden frame on the top window.  Can we do this with Portal?

        Thanks!

        Gary Davies
        Veteran Member
        Posts: 248
        Veteran Member

          Were you using the authenticate functon to populate authUser as self service apps do,  this method still is used but the source moved from javascript/authenicate.js to webappjs/user.js

          Gary Davies

          www.automated-workflow.com

          You are not authorized to post a reply.