How do I get the identity of an appPool programmatically in C#? I want the application pool user and NOT the user who is currently logged in.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
System.Security.Principal.WindowsIdentity.GetCurrent().Nameto identify the Identity in which the current application is running. This link provides a nice utility which displays the identity under which the aspx is run.