Get Permission Details by Permission Name

JFrog REST APIs

ft:sourceType
Paligo

Description: Get the details of a permission by permission name.

Security: Requires an admin user.

Since: Artifactory 7.72.0

Usage: GET <JFrog Base URL>/access/api/v2/permissions/{permission name}

Sample Response JSON

curl --location 'http://example.jfrog.io/access/api/v2/permissions/Perm2' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer cmVmzNE'

{
  "name" : "Perm2",
  "resources" : {
    "artifact" : {
      "actions" : {
        "users" : { },
        "groups" : { }
      },
      "targets" : {
        "example-repo-local" : {
          "include_patterns" : [ "**", "rep" ],
          "exclude_patterns" : [ ]
        },
        "ANY LOCAL" : {
          "include_patterns" : [ "**", "rep" ],
          "exclude_patterns" : [ ]
        },
        "ANY REMOTE" : {
          "include_patterns" : [ "**", "rep" ],
          "exclude_patterns" : [ ]
        },
        "ANY DISTRIBUTION" : {
          "include_patterns" : [ "**", "rep" ],
          "exclude_patterns" : [ ]
        }
      }
    },
    "release_bundle" : {
      "actions" : {
        "users" : { },
        "groups" : { }
      },
      "targets" : {
        "release-bundles-v2" : {
          "include_patterns" : [ "**" ],
          "exclude_patterns" : [ ]
        },
        "release-bundles" : {
          "include_patterns" : [ "**" ],
          "exclude_patterns" : [ ]
        }
      }
    },
    "build" : {
      "actions" : {
        "users" : { },
        "groups" : { }
      },
      "targets" : {
        "artifactory-build-info" : {
          "include_patterns" : [ "**", "beta" ],
          "exclude_patterns" : [ ]
        }
      }
    }
  },
  "created_by" : "admin",
  "modified_by" : "admin"