开发者

Can I restrict viewing some documents from a controlled documents library?

We have around 2000 files in our sharepoint controlled document library, which are viewable by everyone. I would like to restrict viewing of some of the documents and make them viewable for only a specific group of users. I am aware that it can be done by moving those documents to another library and using document library permission, but I prefer to do it programatically by using a document property to identify them Is it possible to programatical开发者_如何学JAVAly deny access to some documents inside the controlled documents library?


An ok approach to achieve this could be to implement an HTTP module that returns a 401 for the URLs matching the documents you want to block. Users will still be able to see all documents in the list view (allitems.aspx for instance) and the associated metadata on view/edit item - also those documents they do not have access to.

As SharePoint alternative you could also set item specific permissions in the document library - without splitting it up into folders or multiple document libraries. That of course implies that you can use assign specific users or groups to the items.

Kr., Bernd.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜