[英]How do I manage permissions on multiple items in SharePoint 2007?
I'm relatively new to SharePoint and am trying to put a bunch of Word files (that were on our network file server) into SharePoint. 我对SharePoint比较陌生,正在尝试将一堆Word文件(位于我们的网络文件服务器上)放入SharePoint中。 We have set up a document library that, by default, gives everyone access to everything.
我们已经建立了一个文档库,默认情况下,它使每个人都可以访问所有内容。 This is the desired top-level permission set because most items will work well this way.
这是所需的顶级权限集,因为大多数项目都可以通过这种方式很好地工作。
The problem is that I have a bunch of documents I want to add and apply some specific permissions to. 问题是我有很多文件要添加并应用一些特定的权限。 I can do this, but...please tell me there is some way I can do this for multiple documents at the same time.
我可以执行此操作,但是...请告诉我有某种方法可以同时对多个文档执行此操作。 Attempting to do this one-by-one is a pain and I'm hoping for a better solution here.
尝试一个接一个地做是很痛苦的,我希望在这里找到更好的解决方案。
Thanks very much in advance. 首先十分感谢。
You can create a folder and set permissions on it. 您可以创建一个文件夹并对其设置权限。 See Office Docs , for the user view of things.
有关事物的用户视图,请参阅Office Docs 。
An alternative is to have several document libraries, each one for a specific purpose (generally available or secret stuff) and the set the permissions on each library. 一种替代方法是拥有多个文档库,每个文档库用于特定目的(通常可用或秘密的东西),并设置每个库的权限。
Personally (and it helps that I'm a powershell msmvp) I would use powershell to do this. 就个人而言(这有助于我成为powershell msmvp),我将使用powershell来做到这一点。 Either v1 or v2 should suffice.
v1或v2都足够。 If you run powershell on one of the servers in the sharepoint farm you will be able to load the sharepoint object model directly and programatically configure the ACLs on each document.
如果在共享点服务器场中的一台服务器上运行Powershell,您将能够直接加载共享点对象模型,并以编程方式在每个文档上配置ACL。 Powershell can read the ACLs from the documents in the nextwork share quite easily:
Powershell可以很轻松地从nextwork共享中的文档中读取ACL:
dir \\server\Documents\*.* | get-acl |`
select path -expand access | ft -GroupBy path
This example will read all files from the share, grab the NTFS ACL from each one, expand the ACL into ACEs and will group by the path. 本示例将从共享中读取所有文件,从每个共享文件中获取NTFS ACL,将ACL扩展为ACE,然后按路径进行分组。 If powershell is not running on a farm server, you can still upload and configure security via one of the webservices.
如果Powershell未在场服务器上运行,您仍然可以通过其中一个Web服务上载并配置安全性。 PowerShell v2 would be more suitable here as it has a great cmdlet called New-WebServiceProxy that will generate a proxy in a snap.
PowerShell v2在这里更适合,因为它具有一个称为New-WebServiceProxy的出色cmdlet,可在瞬间生成代理。
If you want some help with the specifics of the script, follow me on twitter @oising and DM me. 如果您需要有关脚本细节的帮助,请在Twitter @oising和DM me上关注我。
-Oisin -Oisin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.