【问题标题】:How to create Azure Devops service connection using system.accesstoken in a script如何在脚本中使用 system.accesstoken 创建 Azure Devops 服务连接
【发布时间】:2021-09-22 09:31:00
【问题描述】:

我想使用 Azure devops 的 system.accesstoken 创建一个“服务连接”,而不是使用用户的“PAT”。 应该给予 system.accesstoken 什么权限来创建服务连接。

我尝试授予对“Project Collection Build Service ({OrgName})”、“{Project Name} Build Service ({Org Name})”身份的所有访问权限。但它没有用。

【问题讨论】:

    标签: azure azure-devops access-token rbac


    【解决方案1】:

    您需要在Project Collection Build Service (account) 的服务连接安全选项卡上定义角色:

    【讨论】:

    • 应该赋予那个角色哪个角色?
    • 我同时赋予了创建者和管理员角色,但它没有使用 system.accesstoken 创建“服务连接”
    猜你喜欢
    • 1970-01-01
    • 2021-03-25
    • 2023-01-05
    • 2022-10-17
    • 1970-01-01
    • 2020-01-06
    • 2022-11-25
    • 1970-01-01
    • 2021-01-20
    相关资源
    最近更新 更多