SharePoint custom C# code - impersonate the app pool account

less than 1 minute read

note to self - in SharePoint when you need to impersonate the application pool account, you can use WindowsIdentity.Impersonate(IntPtr.Zero) like this:

Updated: