Runwithelevatedprivileges in Sharepoint 2010 |
In this post you will learn how to use Runwithelevatedprivileges with LINQ in SharePoint 2010. In the code below you will see how a user who does not have permissions( not even read permissions) to a list can add an item in the list and with his user name as an author (created by) of the item. To assign a current user as an Author of the item we have first retrieved the real credentials, and then elevated the privileges. private void CreateItem(SPList hiddenList) |
Monday, November 28, 2011
Runwithelevatedprivileges in Sharepoint 2010
Category:
SharePoint 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment