是否有 Azure devops rest API 来管理进程级别的安全性

Is there an Azure devops rest API to manage the process level security

我的应用程序需要授予用户添加新工作项类型或编辑现有流程的现有工作项类型的权限。

是否有 Azure devops rest API 来管理进程级别的安全性?

我在文档中找不到任何这样的 API。

如有任何帮助,我们将不胜感激。

提前致谢。

needs to grant permission for users to add new work item type or to edit existing work item type of an existing process

要自定义流程,您需要为特定流程的用户帐户授予 Edit process 权限。

我从浏览器的网络中抓取如下api设置Edit process权限为Allow.

POST  https://dev.azure.com/{org}/_apis/AccessControlEntries/2dab47f9-bd70-49ed-9bd5-8eb051e59c02?api-version=5.1-preview

示例请求正文:

{
    "token": "$PROCESS:adcc42ab-9882-485e-a3ed-7678f01f66bc:93xxxxe3-1510-4ae5-9019-f770318a3444:",
    "merge": true,
    "accessControlEntries": [{
        "descriptor": "Microsoft.IdentityModel.Claims.ClaimsIdentity;00037FFE1EBE3CEA@Live.com",
        "allow": 1,
        "deny": 0,
        "extendedInfo": {
            "effectiveAllow": 1,
            "effectiveDeny": 0,
            "inheritedAllow": 1,
            "inheritedDeny": 0
        }
    }]
}

在 Postman 中测试:

更新:

GroupDescriptor的解码形式在这里可以作为IdentityDescriptor。