Capture Logon user ID in portal

 2 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
JavaCafe
Advanced Member
Posts: 23
Advanced Member

Hi;

We have some hyperlinks on lawson portal to other ,NET web apps, and use Request.ServerVariables("LOGON_USER") to pass logon user ID to these apps. Before we upgraded to Lawson 9.0 it worked fine. But now  the Request.ServerVariables("LOGON_USER")  always return empty string (LSF 9 using LDAP).  Is there other way we can capture the user Logon ID in Lawson portal?

Thank you in advance.

MattH
Basic Member
Posts: 4
Basic Member

LOGON_USER is an NT server variable.  So, unless you're bound to NT security I don't think it exists any more...  I'm looking for another place to grab this id too as we have a similar need to pass the user name into other .NET applications launched from the portal.

John Henley
Posts: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
You can use the getAttribute method of the oUserProfile to figure out the user's login id:
function FORM_OnInit()
{
alert( portalWnd.oUserProfile.getAttribute("id"))
alert( portalWnd.oUserProfile.getAttribute("lawsonusername"))
}
Thanks for using the LawsonGuru.com forums!
John