Description: Get the list of all permissions in the system.
Authorization: Requires authentication using Access Tokens, either as admin or using a scoped token with the system:permissions:r scope.
Since: Artifactory 7.72.0
Usage: GET /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, between 1 and 99,999, non-inclusive.
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"
}