Questions tagged [runwithelevatedprivileges]
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.
88 questions
0 votes
0 answers
58 views
RunWithElevatedPrivileges not working
I'm trying to debug a server solution which stopped working when it was migrated into SP 2019 (not sure if it was migrated from 2013 or 2016). The solution is using SPSecurity....
0 votes
1 answer
118 views
Can 'Elevated privileges' be used in SharePoint 2019?
I want to migrate my farm solution from SharePoint 2010 to SharePoint 2019. I have RunWithElevatedPrivileges method used in SP2010 solution. Can it be used in SP2019 also?
0 votes
2 answers
450 views
Restricting users to Edit directly on SharePoint List
We have created a SharePoint framework app which adds items to SharePoint List. As we are in client side we gave "Contribute" level Permission to all the users to edit the form (to add update the ...
1 vote
1 answer
482 views
Are there any risks if we enable our workflow 2013 to run on elevated privileges (to use app permissions)
I am working on a SharePoint online site collection. We have a list which can only be viewed by certain users. But inside our workflow we want to be able to add items in this list and to be able to do ...
0 votes
1 answer
56 views
Create Content Database from Farm Application Page
This issue seems like it should be very easy to resolve, however it has taken hours and makes no sense. Case: Custom application page with simple form fields. When the form is filled out by user, ...
2 votes
1 answer
336 views
Running a remote event receivers in elevated privileges
I am currently migrating our server side event receivers to be remote event receivers. Now, one thing I can not find a way of doing it is how I can run part of my remote event receiver code in ...
0 votes
1 answer
157 views
Access Denied opening Web in elevated context
I am having a problem with a Visual Studio workflow where I am attempting to open the site from an elevated context and am getting an Access Denied exception. My current user is in the Farm ...
0 votes
2 answers
125 views
Open web in privileges mode and use it outside
I'm often using pattern where I create class Workspace. This class has some basic functionality and on of them is opening of webs, and also web in privilege mode: public class Workspace : IDisposable ...