This is the routine I use to identity the user accessing the application:
1 | Public Shared Function NtUserNameNoWg() As String |
someone analizing the code recommended I use
1 | WindowsIdentity.GetCurrent().Name |
instead of
1 | System.Web.HttpContext.Current.User.Identity.Name |
See
https://stackoverflow.com/questions/33665929/whats-the-difference-between-system-environment-username-and-user-identity-name
for more information.