Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
what permission level RunWithElevatedPrivileges in SharePoint
April 18, 2010
Under what permission level will RunWithElevatedPrivileges work
what is the use of using in
SPSite siteColl = SPContext.Current.Site;
SPWeb site = SPContext.Current.Web;
using (SPSite ElevatedsiteColl = new SPSite(siteColl.ID))
using (SPWeb ElevatedSite = ElevatedsiteColl.OpenWeb(site.ID))
string SiteCollectionOwner = ElevatedsiteColl.Owner.Name;
string Visits = ElevatedsiteColl.Usage.Visits.ToString();
string RootAuditEntries =
Posted Date: April 18, 2010 Points: 5
I got the solution..
Whenever we use RunWithElevatedPrivileges the process which actually running the code will create new thread and that thread will running under the SharePoint webapplication's application pool identity - which is normally the "system account"
Posted Date: May 24, 2010 Points: 5
runs with higher priveledges than the current user executing the code.
Lets say for example u have created a webpart which displays all the users form User Information List, in this case u need high privileged user to get list item from User Information List.This is where u need to user
To post reply
Related Questions Related Questions
Permission level cannot be found?
Set permission for SQL login id
How to link SharePoint lists to external data sources?
MS SharePoint & Dynamics
Login failed for user nt authority network service sharepoint?
sharepoint timer jobs not running?
Sharepoint basic development
How to: Install SharePoint 2007 'Standalone' on Windows 7 Ultimate
Latest Forum Questions From The Same Category
How to implement graphs / charts to a custom list in SharePoint 2013
two farms same domain
Where is the mapping been done from Visual Studio to 14hive folder in sharepoint
What are the different ways to prevent cross site scripting on SharePoint 2013 sites?
Read Excel from sharepoint library using excel service
SharePoint User Groups in Conditional Formatting dropdown - InfoPath 2010
Reading the contents of Telerik editor web part which is added in MOSS 2007 web part page
How to show the list in a custom asp.net web application page
Listviewwebpart to diplay list dynamically in a custom page
How to hide the left navigation in a SharePoint site collection
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend