2
votes

Can records which are deleted from list can be restored other than administrator account? If possible how? In my current project, i have to give permissions for a group who are having "Approve" permission to restore the records which are deleted from the lists. Any suggestions?

2
Kindly explain your requirement may be we can suggest you an alternative approach to achieve your purposeAshutosh Singh-MVP SharePoint
in my current project users who are having Approve permission should able to restore the deleted items from recycle bin..Abhimanyu

2 Answers

1
votes

You will have to write some custom code to get around the security model - which if done correctly can have benefits in not granting excessive rights. Here is a code snippet to get you started:

SPSecurity.RunWithElevatedPrivileges(delegate()
{
  using (SPSite site = new SPSite("http://server/"))
  {
    using (SPWeb web = site.OpenWeb())
    {
      if (web.RecycleBin.Count > 0)
      {
        web.RecycleBin[0].Restore();
      }
    }
  }
});
1
votes

Unfortunately there is no supported way to access the recycle bin for all items from a site collection as a non-site collection administrator.

The Recycle Bin only displays content deleted by the user who opens the Recycle Bin. So you will only see content in "your recycle bin" when you delete something yourself, even when you are a site owner. You will not be able to see documents deleted by someone else.

When being logged in as a site collection administrator you can open the recycle bin and see deleted items from all users. You even have the selection of views: