我的应用程序,需要授予用户添加新工作项类型或编辑现有流程的现有工作项类型的权限。
是否存在Azure devops rest API来管理流程级别的安全性?
我在文档中找不到任何此类API。
任何帮助将不胜感激。
谢谢。
答案 0 :(得分:0)
需要授予用户添加新工作项类型或向其添加权限的权限 编辑现有流程的现有工作项类型
要自定义流程,您需要为特定流程的用户帐户授予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
}
}]
}
邮递员测试:
更新:
GroupDescriptor的解码形式可以在此处用作IdentityDescriptor。