TFSSecurity - 创建标记定义权限不可设置

TFSSecurity - Create Tag Definition Permission not settable

在 TFSSecurity 的 reference page 权限中,在 团队项目级别 下,有一个权限列表及其相应的操作。使用 TFSSecurity,我能够在项目级别为我创建的新组设置所有权限,Create Tag Definition 除外。您几乎可以预料到错误,它的操作是大写和小写字母 (Create),而其他所有操作都是大写字母 (PUBLISH_TEST_RESULTS, DELETE, DELETE_TEST_RESULTS).

我试过使用 createCreateCREATE、none 这些工作。有人知道此权限的相应操作吗,因为 Microsoft 未在线记录它?

您需要在命令中指定团队项目 Guid 而不是团队项目名称。

请按照以下步骤为团队项目组设置 Create Tag Definition 权限:

  1. 使用 REST 获取团队项目 ID API:

    http://SERVER:8080/tfs/DefaultCollection/_apis/projects/{YourProjectName}?api-version=1.0

  2. cd 到 C:\Program Files\Microsoft Team Foundation Server 15.0\Tools (基于您的 TFS 版本),运行 命令下方:

    TFSSecurity /a+ Tagging //6553c041-5e50-4ace-bec2-c1dba2b812ca Create 0825 ALLOW /collection:http://server:8080/tfs/DefaultCollection

PS:在这个例子中 团队项目 ID 是 6553c041-5e50-4ace-bec2-c1dba2b812ca 并且 用户组名为0825不要忘记在团队项目ID前加'//'