如何授予查看构建权限,以便能够查看项目的标签
How to grant View builds permissions to be able to view tags for a project
我正在尝试 get tags for a team project in Azure DevOps using REST Client provided by VSTS/TFS,但我总是遇到异常。
我的代码看起来像这样(简化):
List<string> tags = new List<string>();
using (var client = new Microsoft.TeamFoundation.Build.WebApi.BuildHttpClient(uri, credentials))
{
tags = await client.GetTagsAsync("<project>");
}
但是我得到了这个拒绝访问异常:
An exception of type
'Microsoft.TeamFoundation.Build.WebApi.AccessDeniedException' occurred
in mscorlib.dll but was not handled in user code Additional
information: TF215002: Access denied. [Account] needs View builds
permissions for team project [Project] to perform the action. For more
information, contact the Azure DevOps administrator.
我已经尝试 google 并且还查看了各种在线 Microsoft 文档,但找不到任何内容...
此外,我已尝试在 Azure DevOps 中查看我的团队项目的所有安全权限,但无法在任何地方找到此 "View builds permissions"。
如何以及在何处将 "View builds permissions" 授予我的帐户?
我的帐户只需要 view/get 我的团队项目标签的权限,不需要创建、更新或删除标签。
在构建页面中,在 ...
link 中 Queue
中有 Security
,它具有 View builds
权限。
如上所述,此功能适用于 Azure DevOps。我们可以为用户提供任何级别的精细权限。
对于实际的 real-life 实施,我建议您在安全菜单的权限选项卡中创建一个 "Azure DevOps Groups" 用户。
这将帮助您将特定 real-life 组的用户分组,例如开发人员、测试人员、经理、产品负责人。然后,您可以同时为整个组提供权限,而不是为他们提供单独的权限。
因为你提到你正在为更大的受众群体工作。这个功能对你真的很有帮助!
我正在尝试 get tags for a team project in Azure DevOps using REST Client provided by VSTS/TFS,但我总是遇到异常。
我的代码看起来像这样(简化):
List<string> tags = new List<string>();
using (var client = new Microsoft.TeamFoundation.Build.WebApi.BuildHttpClient(uri, credentials))
{
tags = await client.GetTagsAsync("<project>");
}
但是我得到了这个拒绝访问异常:
An exception of type 'Microsoft.TeamFoundation.Build.WebApi.AccessDeniedException' occurred in mscorlib.dll but was not handled in user code Additional information: TF215002: Access denied. [Account] needs View builds permissions for team project [Project] to perform the action. For more information, contact the Azure DevOps administrator.
我已经尝试 google 并且还查看了各种在线 Microsoft 文档,但找不到任何内容...
此外,我已尝试在 Azure DevOps 中查看我的团队项目的所有安全权限,但无法在任何地方找到此 "View builds permissions"。
如何以及在何处将 "View builds permissions" 授予我的帐户?
我的帐户只需要 view/get 我的团队项目标签的权限,不需要创建、更新或删除标签。
在构建页面中,在 ...
link 中 Queue
中有 Security
,它具有 View builds
权限。
如上所述,此功能适用于 Azure DevOps。我们可以为用户提供任何级别的精细权限。
对于实际的 real-life 实施,我建议您在安全菜单的权限选项卡中创建一个 "Azure DevOps Groups" 用户。
这将帮助您将特定 real-life 组的用户分组,例如开发人员、测试人员、经理、产品负责人。然后,您可以同时为整个组提供权限,而不是为他们提供单独的权限。
因为你提到你正在为更大的受众群体工作。这个功能对你真的很有帮助!