/acl 命令

使用 /acl 显示适用于特定对象的访问控制列表。

必需的权限

若要使用 /acl 命令,您必须将**“查看集合级别信息”“查看实例级别信息”权限设置为“允许”**,具体取决于是否正在分别使用 /collection/server 参数。有关更多信息,请参见Team Foundation Server 权限

TFSSecurity /acl Namespace Token [/collection:CollectionURL] [/server:ServerURL]

参数

参数

说明

Namespace

包含要对其查看用户或组权限的组的命名空间。

Token

要在其上查看权限的对象的名称或 GUID。

说明说明
根据您指定的命名空间,标记会有所不同。一些命名空间不具有适用于此命令的令牌。

/collection:CollectionURL

如果未使用 /server,则必选。按以下格式指定团队项目集合的 URL:http://ServerName:Port/VirtualDirectoryName/CollectionName

/server:ServerURL

如果未使用 /collection,则必选。按以下格式指定应用层服务器的 URL:http://ServerName:Port/VirtualDirectoryName

备注

在 Team Foundation 的应用层服务器上运行此命令。

访问控制项是一种安全机制,它们决定了用户、组、服务或计算机可以在计算机或服务器上执行的操作。

示例

下面的示例可以在 ADatumCorporation 部署中的 Server 命名空间中显示可以访问 FrameworkGlobalSecurity 标记的用户和组。

说明说明

该示例仅适用于安装和虚构。没有实际关联是预期或推断。

> tfssecurity /acl Server FrameworkGlobalSecurity /server:ServerURL 

示例输出:

TFSSecurity - Team Foundation Server Security Tool
Copyright (c) Microsoft Corporation.  All rights reserved.
The target Team Foundation Server is http://ADatumCorporation:8080/.
Retrieving the access control list for object "Server"...

Effective ACL on object "FrameworkGlobalSecurity":
  [+] GenericRead                        [INSTANCE]\Team Foundation Valid Users
  [+] GenericRead                        [INSTANCE]\SharePoint Web Application Services
  [+] Impersonate                        [INSTANCE]\SharePoint Web Application Services
  [+] GenericRead                        [INSTANCE]\Team Foundation Service Accounts
  [+] GenericWrite                       [INSTANCE]\Team Foundation Service Accounts
  [+] Impersonate                        [INSTANCE]\Team Foundation Service Accounts
  [+] TriggerEvent                       [INSTANCE]\Team Foundation Service Accounts
  [+] GenericRead                        [INSTANCE]\Team Foundation Administrators
  [+] GenericWrite                       [INSTANCE]\Team Foundation Administrators
  [+] TriggerEvent                       [INSTANCE]\Team Foundation Administrators
  [+] GenericRead                        DATUM1\jpeoples

Done.

请参见

其他资源

使用 TFSSecurity 更改组和权限

How to: Create a Global Group

Team Project Groups

Default Groups