【问题标题】:Restrict TFS 2010 access by work item type按工作项类型限制 TFS 2010 访问
【发布时间】:2014-07-19 04:17:17
【问题描述】:

在 TFS 2010 中,是否可以让一组用户更新某些工作项类型,但限制对所有其他用户的只读访问?

【问题讨论】:

    标签: tfs tfs-workitem


    【解决方案1】:

    您可以这样做的一种方法是将必填字段添加到您想要控制的工作项类型。 你需要做什么:

    • 使用witadmin导出WI类型定义xml:

      witadmin.exe exportwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:<project name> /n:<WI type name> /f:C:\type.xml

    • 通过将新字段定义添加到 FIELDS 节点来修改 WI 类型 xml:

      <FIELD name="Block" refname="Test.Block" type="String" reportable="dimension"> <ALLOWEDVALUES> <LISTITEM value="NotUsed" /> </ALLOWEDVALUES> <REQUIRED for="[Project]\RestrictedUsers" /> <DEFAULT for="[Project]\RestrictedUsers" from="value" value="You don't have permissions to create work items of this type."/> </FIELD>

    • 将更新后的 xml 导入回服务器:

      witadmin.exe importwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:&lt;project name&gt; /f: C:\type.xml

    • 现在 RestrictedUsers 项目组的成员将无法创建/更新此类型的工作项。当他们尝试保存这种类型的工作项时,他们会收到一条错误消息:

      The field 'Block' contains the value 'You don't have permissions to create work items of this type.' that is not in the list of supported values.

    【讨论】:

      【解决方案2】:

      不,我认为这不可能通过工作项类型来实现。但是,您可以根据工作项所在的区域来限制对工作项的访问。但是区域权限的安全性将同样适用于该区域中的所有工作项类型。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-10-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-29
        • 1970-01-01
        相关资源
        最近更新 更多