Open u2mejc opened 3 years ago
Hi, are there any news about this ticket?
We are using JFrog CLI and are very disappointed about the missing feature to retrieve permission target.
Our workaround now is
/api/v2/security/permissions/
)permission-target-update
).This cannot be the intended usage by JFrog.
Describe the bug The command
jfrog rt permission-target-update
replaces the existing permission with the contents of the json template file, deleting any resource attributes not included. As the jfrog CLI doesn't have a built in command to read / get existing permissions, it's not possible to use only the jfrog cli in an automation script today.The API docs more aptly describe this usage create or replace, here: https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplacePermissionTarget
To Reproduce
jfrog rt permission-target-get
command:No help topic for 'permission-target-get'
jfrog rt permission-target-template
to create template of one new repo to add to an existing permission.jfrog rt permission-target-update
, that instead of appending to update the object, it's been replaced, and all attributes previously in the permission have been lost.Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Versions
Suggested Resolutions
s/permission-target-update/permission-target-replace
and add functionality toread
orget
existing permissions - or -permission-target-update
.