Lost your password?

Blogs about: Runwithelevatedprivileges

Featured Blog

How to impersonate user into event receiver class or Access denied error on event receiver

Sanket Shah wrote 1 week ago: Requirement: I need to remove user permission from list item based on some specified condition; norm … more →

Tags: Personal Experience, SharePoint Event Receiver, SharePoint Features, Sharepoint Problems, Access denied error on event receiver, access denied errors into event receiver class, access denied errors while breaking inheritance of list, Event Receiver, event receiver class

Error while cancelling/terminating workflow from SharePoint object model

Sanket Shah wrote 1 week ago: I had a requirement in which user can cancel / terminate workflow from custom ASPX page, I got good … more →

Tags: Personal Experience, SharePoint Object Model, Visual Studio Workflow - SharePoint, Workflow Errors, cancel / terminate workflow, cancelling/terminating workflow, cancelling/terminating workflow from object model, custom ASPX page, error while cancelling/terminating workflow from object

Accessing User collection of SPGroup giving Access Denied error1 comment

techolyvia wrote 8 months ago: I was getting the Access Denied page when I tried to access the UsersCollection of a SPGroup Instanc … more →

Tags: spgroup, User collection of SPGroup, SPWeb SiteGroups, Access denied

Add RoleAssignment to listitem.

techyard wrote 8 months ago: This is continuing the previous post. After you create the list item impersonating the current logge … more →

Tags: Sharepoint/Wss 3.0, AllowUnsafeUpdates, Assignment, BreakRoleInheritance, Error, get requests, list item, Role, SharePoint

Elegant SPSite Elevation15 comments

Keith Dahlby wrote 11 months ago: A common difficulty with SPSecurity.RunWithElevatedPrivileges (most recently lamented here) is that … more →

Tags: Object Model, SharePoint, GetSystemToken, RunAsSystem, SelectAsSystem, spsecurity

Elevation: Run Code as an Administrator1 comment

Thomas Sondergaard wrote 1 year ago: Sometimes you may need your web part to perform tasks for which the current user doesn’t have … more →

Tags: development, web part, Elevation, Delegate, Credentials, unauthorized, privileges, spsecurity


Have your say. Start a blog.

See our free features →

Related Tags
All →

Follow this tag via RSS