Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm currently playing around with SharePoint 2010 but have come across an issue when using the standard Document Library and Announcement web parts. If I change the permissions to a list or library from inherited to custom permissions if a user doesn't have access to the list or library the web part displays the error shown below, instead of not displaying the web part to the user.

Web Part Error: Access denied. You do not have permission to perform this action or access this resource.

The thing thats confusing me is that the error only shows if the web part is within a web part pane, if I add the web part to a rich content area and a user doesn't have permissions to see a list it simply doesn't display.

If anyone knows how this can be resolved, please let me know. It looks like the issue dates back to SharePoint 2007 from what I've seen and have seen a technet article (919550) for SharePoint 2007, but does not yet say it applies to 2010 and have tried the workarounds contained within such as setting the target audience of the web part, but this has had no affect.

update I've since forwarded this issue to Microsoft who have been able to replicate the fault and are currently working on a resolution.

share|improve this question

6 Answers 6

Yes there is a solution to restricted document libraries showing up with 'Web Part Error: Access Denied'.

On the restricted document librarly, you can give the build-in Windows Domain Group 'NT AUTHORITY\authenticated users' Site Permissions for 'Open' (Allows users to open a Web site, list, or folder in order to access items inside that container.)

This is a custom permission level that you need to create (you only select 'Site Permissions: Open' permission. Then you assign this permission to 'NT AUTHORITY\authenticated users' - which would apply to any logged in user. Then the user can open the document library without being able to read any items within it.

The error on the web part is due to the user not having enough permission to even open the document library. You can allow the user to open the document library, but not read any content. Then all works well, we use this all the time on both SharePoint 2007 and 2010, and don't get the annoying error on the web page.

share|improve this answer
    
Thank you. I think your answer should be picked. –  Mark Jun 27 at 8:38

We are seeing this exact same thing while we attempt to upgrade from 2007 to 2010. What is worse, as manemawanna stated, if the user doesn't have rights to the document library, even the Audiences on the web part are ignored and the the web part shows the error.. We use document level security extensively on our sites, and this problem breaks almost all of our document libraries! This will prevent us from upgrading to 2010. I see CU1 is out now, but nothing mentioned there seems to address this issue.

Manemawanna, have you heard anything new from MS on this issue??

Thanks!

Paul

share|improve this answer
    
Hello Paul, just so you know we have CU1 applied to both our dev and live servers and it does not resolve the issue. Microsoft have been in touch and are refunding/closing the call as to put it simply they said it's how SharePoint should work after getting in touch with some of the specific support and development teams. I am waiting for further responses though regarding the audiences, but as of now I would just leave it for the moment if you upgrading as there is no fix. We are in a different situation where this is our first SharePoint deployment and at the stage where we need to push on. –  Anonymous Aug 25 '10 at 10:27
up vote 1 down vote accepted

Turns out the functionality I described at the start of the thread is how SharePoint is supposed to work.

share|improve this answer

But how can this be by design!!!?? The scenario of, having a user acess a site, that in it's homepage has a list view, of a list that doesn't inherit permissions, and the user doesn't have permissons on any item, seems quite a normal scenario, don't you think?

share|improve this answer

Is it possible to put a rich content area within a web part zone and then insert the data view into that rich content zone?

share|improve this answer
    
I'm not entirely sure if I'm honest. We haven't got that far, its just something were currently testing using some of the default page templates within SharePoint. –  Anonymous Aug 3 '10 at 8:16

Is there a solution to this issue? Coming up against it myself a year and a half later...

When trying to add a web part directly to Rich Content rather than a webpart zone, the page looks like it's saving/adding the webpart but once the browser refreshes, there's nothing in the RCE.

share|improve this answer
    
Oops, I think this was better suited as a comment rather than an answer! –  Beeblebrox Feb 7 '12 at 0:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.