sharepointimpersonationapplicationpoolidentity

Sharepoint - Impersonating App Pool Identity


I'm using the SPSecurity.RunWithElevatedPrivileges.... allow to "impersonate" the super user "sharepoint\system" account.

Is the "sharepoint\system" account is an alias of the app pool identity of the current web application?

So if my app pool identity is a custom user (with email and other information), how can i retrieve its information? (the information i'm trying to get is the email address...the custom app pool user email has a value, the "sharepoint\system" account email has no value!!!)

I also tried to retrieve the appPool identity by using the WindowsIdentity.Impersonate(IntPtr.Zero) method but...nothing!

So any ideas????


Solution

  • Points to note: