A method of the SPSecurity class, RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control.

learn more… | top users | synonyms

10
votes
3answers
3k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool ...
2
votes
3answers
533 views

Application page in layouts folder accessing web application object

There is an application page, deployed to the layouts folder. The URL of the app page is: http://server:port/sc2/_layouts/test/mypage.aspx Now, there is a user with read only permissions (added ...
0
votes
1answer
106 views

Can SPPersistedObject settings be updated by normal users if ran with elevated privileges?

I have a custom ribbon icon "Enlist" deployed to each document library. A normal (i.e. non-admin) user can click this icon; when he does, I would like to permanently save the document library ...