jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

JFrog CLI list users

Open mgriffin13 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, the JFrog CLI allows me to perform user and group management on the JFrog platform using jf rt user-create and jf rt group-create, etc. For some reason, there doesn't appear to be any way to list which users and groups already exist.

Describe the solution you'd like to see I'd like to see new subcommands jf rt users-list and jf rt groups-list that simply return the list of users and groups. Adding the same filters that are available in the UI (Admin, Status, Realm for users, Admin, Auto Join, External for groups) would be a plus as well.

Describe alternatives you've considered The alternative I'm currently using is to execute the following, but it relies on the older, deprecated API since the JFrog CLI doesn't have a curl option that can use the /access endpoint.

jfrog rt curl -XGET /api/security/users | jq -r '.[]|select(.realm=="internal").name'

Additional context Add any other context or screenshots about the feature request here.

mgriffin13 avatar Jul 12 '24 13:07 mgriffin13