Get Permissions

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Get the list of all permissions in the system.

Security: Requires an admin user.

Since: Artifactory 7.72.0

Usage: GET <JFrog Base URL>/access/api/v2/permissions

You can also use cursor and limit attributes to refine the results. You can enter a permission name in the cursor attribute to list the permissions that start from that permission. You can enter an integer in limit to define the number of results.

You can use cursor and limit independently or together: GET <JFrog Base URL>/access/api/v2/permissions?cursor<string>&limit<integer>

Sample Response JSON

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

{
  "permissions" : [ {
    "name" : "Perm2",
    "uri" : "/access/api/v2/permissions/Perm2"
  }, {
    "name" : "Any Remote",
    "uri" : "/access/api/v2/permissions/Any%20Remote"
  }, {
    "name" : "Anything",
    "uri" : "/access/api/v2/permissions/Anything"
  }, {
    "name" : "Perm",
    "uri" : "/access/api/v2/permissions/Perm"
  } ],
  "cursor" : "Perm2"
}
curl --location 'http://example.jfrog.io/access/api/v2/permissions?limit=2' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer cmVNE'

{
  "permissions" : [ {
    "name" : "Any Remote",
    "uri" : "/access/api/v2/permissions/Any%20Remote"
  }, {
    "name" : "Anything",
    "uri" : "/access/api/v2/permissions/Anything"
  } ],
  "cursor" : "Anything"
}
curl --location 'http://localhost:8082/access/api/v2/permissions?cursor=Perm' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer cmVNE'

{
  "permissions" : [ {
    "name" : "Perm2",
    "uri" : "/access/api/v2/permissions/Perm2"
  } ],
  "cursor" : "Perm2"
}