Lotus Notes FAQ Visit Our Sponsor!

How do you get the current user name in LotusScript?

You can use this to get the current web user's Domino user name:

  Dim session As New NotesSession
  Dim username As String
  username = session.EffectiveUserName

You do have to have the 'Run Agent As Web User' agent property checked for this to work.

Applies to Notes Versions: 5
Last Modified: June 20, 2001