Artifactory用户权限

时间:2017-11-13 19:16:26

标签: artifactory

有没有办法检查用户是否通过Artifactory REST API部署了权限?

我正在使用cURL向Artifactory服务器发送请求。

1 个答案:

答案 0 :(得分:1)

是的,使用/ api / storage / {repo-key} / {item}?permissions API。请参阅https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-EffectiveItemPermissions

上的文档

文档解释了权限字符的含义。

GET /api/storage/libs-release-local/org/acme?permissions
{
"uri": "http://localhost:8081/artifactory/api/storage/libs-release-local/org/acme"
"principals": {
        "users" : {
          "bob": ["r","w","m"],
          "alice" : ["d","w","n", "r"]
        },
        "groups" : {
          "dev-leads" : ["m","r","n"],
          "readers" : ["r"]
        }
    }
}