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

3
votes
1answer
325 views

RunWithElevatedPrivileges doesn't work in Webpart Constructor

With Sharepoint 2007 I am using RunWithElevatedPrivileges to write to the Event Log, but if I place the call inside the Webpart constructor, I get a "Request Failed" message. However, if I put this ...
1
vote
1answer
38 views

Permission issue creating site collection from service application

We have a custom service application set-up which is tasked with the creation of site collections. It uses the blank site template for this, on which we want to activate several of the out of the box ...
1
vote
1answer
127 views

Update current list item c#

When using a custom workflow activity with elevated privileges to create an item in a list. It creates two instead of one. What I am doing is that when a user create an item in the list . It displays ...
1
vote
1answer
130 views

Unauthorized error when adding form to a form library

I have a webpart that extracts a form from an infopath template then it attempts to add this to a form library in SharePoint. I get an unauthorized error 401 when it attempts to add the file. It ...
0
votes
1answer
169 views

SPWeb permissions inside RunWithElevatedPrivileges

Please consider following scenario: public override void ItemUpdated(SPItemEventProperties properties) { SPSecurity.RunWithElevatedPrivileges(delegate() { SPWeb web1 = properties.Web; ...
0
votes
0answers
34 views

Getting Site Collection admin email address if ReadOnly enabled

I have a site collection which is in read only state. I need to get Site Collection administrator's email address. I've tried to use elevated privileges, but still get "Attempted to perform an ...