Is there a way to get the current logged in Windows user?

Although this thread is for Angular the code might be helpful in your case as well:

1 Like