Effective Item Permissions

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Returns a list of effective permissions for the specified item (file or folder).

Only users and groups with some permissions on the item are returned. Supported by local and local-cached repositories.

Permissions are returned according to the following conventions:

m=admin; d=delete; w=deploy; n=annotate; r=read

Notes: Requires Artifactory Pro

Since: 2.3.4

Security: Requires a valid admin or local admin user.

Usage: GET /api/storage/{repoKey}/{itemPath}?permissions

Produces: application/json (application/vnd.org.jfrog.artifactory.storage.ItemPermissions+json)

Sample Output:

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"]
        }
    }
}