Current user

  • Thread starter Thread starter Tarllem
  • Start date Start date
Hi,

You know how to request the user name of the active login?

System.Environment.UserName. That will get you the name of the person who
started the current thread.

There's also System.Security.Principal.WindowsIdentity.GetCurrent(). This
gets you the WindowsIdentity object that represents the current Windows
user. You can then access the Name property.
 
Back
Top