Get username from web

Hi,would be glad if someone could help me out on this.I need to create a document from the web as a background task.I am doing this using an agent called from the web.In the doc I create I need to store the user name of the person who is logged in.

The session.username property returns the server name(as it should).Is there any way I can get the name of the user who is invoking the agent?

Subject: get username from web

use session.documentcontext.remote_user(0) in ur agent for getting the username. this is a CGI variable

Subject: Couple of things…

Make sure the agent you are firing is set to “run as Web user”.

You can use session.EffectiveUserName to get the user’s name.

You can also create a field on the form with the formual @UserName and it will contain the name of the authenticated user, or if the user hasn’t authenticated it will contain “Anonymous”.

Rocky Oliver
Sapphire Oak Technologies
EML: rock@sapphireoak.com
**The progress they’re making in finding a cure for male pattern baldness is all good and well, but I’ll be a lot happier when they find a cure for male pattern ugliness.


<<< Rocky is speaking at these upcoming events… >>>
IBM DeveloperWorks Live!
New Orleans, LA – April 9 - 12, 2003
http://www.ibm.com/events/developerworkslive

DNUG Developer Conference
(German Notes User Group)
Hamburg, Germany – May 20 - 21, 2003
http://www.dnug.de/DNUG/DNUGCMS.nsf/id/18Konf.htm