How to detect which Windows account is running a .net application?
Posted
by Bryan
on Stack Overflow
See other posts from Stack Overflow
or by Bryan
Published on 2010-04-27T21:37:13Z
Indexed on
2010/04/27
21:53 UTC
Read the original article
Hit count: 316
Hi, I'm writing a sharepoint web part. It writes logs into a file (by using StreamWriter). However, logs are written only for users whose accounts are administrators on the server hosting the web part. I want to detect which account (probably not by using SPUser) is executing web part's code, so that I can have logs generated for less privileged users. Is that possible?
Thanks
© Stack Overflow or respective owner