使用SharePoint Designer 2010保留文档库的权限 [英] Retain permission of document library using SharePoint designer 2010

查看:52
本文介绍了使用SharePoint Designer 2010保留文档库的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用SharePoint Designer 2010(不使用Web Interface)将文档从网站集的文档库复制到另一个网站集的文档库.如何保留文档的权限?

I am trying to copy the documents from document library of a site collection to another site collection's document library using SharePoint Designer 2010 (Not using Web Interface). How can I retain the permission of documents ?

推荐答案

您可能需要代码将文件复制到目标库,并获得其权限.

使用 SPFile.CopyTo 方法可将文件复制到目标URL并使用

Using SPFile.CopyTo method to copy the files to the destination URL and use SPListitem.BreakRoleInheritance method to break inheriting permissions and add the unique permissions.

一个供您参考的演示:

最好的问候,

Linda(张)


这篇关于使用SharePoint Designer 2010保留文档库的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆