Friday, April 13, 2012

Limited Access Not Working on Folders

Environment:
SharePoint 2010, no service pack installed

Scenario:
  • There is a folder in a document library on a site.
  • Bob does not have access to the site, nor the document library.
  • I break inheritance to the folder and grant Bob access.
  • Bob is then given a link to get to the folder in the document library.
  • Bob opens the link and is told Access Denied
Troubleshooting:
  • All logs give a standard access denied error
  • Nothing shows up in the Event Viewer
  • Works in other site collections in the same web app
  • Exported trouble site collection and reimported into another web app, no luck
  • Other mundane things that left me frustrated
Microsoft came to the rescue:
Microsoft Support gave me a lovely command to run:
  • disable-spfeature -identity viewformpageslockdown -url http://sitecollection.com
Apparently this happens on site collections that are created based on the publishing template. My site collections that were based on the Team site template didn't have the problem