Group Management
Groups are named collections of Artifactory users. Assigning permissions to a group — rather than to individual users — simplifies access control: add a user to a group and they immediately inherit all permissions that group holds.
The JFrog CLI provides three commands for managing groups:
| Command | Alias | What it does |
|---|---|---|
jf rt group-create | rt gc | Create a new group |
jf rt group-add-users | rt gau | Add one or more existing users to a group |
jf rt group-delete | rt gdel | Permanently delete a group |
Note
The JFrog CLI does not provide a
group-listorgroup-getcommand. To view existing groups, use the Artifactory UI (Administration → Identity and Access → Groups) or the Artifactory REST API (GET /access/api/v2/groups).
Prerequisites
All group management commands require:
- JFrog CLI installed and a server configured — run
jf config showto verify. - Admin privileges on the Artifactory instance.
Typical workflow
To create a group, add members, and apply a permission target:
- Create the group:
jf rt group-create backend-team- Add existing users to the group:
jf rt group-add-users backend-team alice,bob- Generate a permission target template interactively, then create it on the server:
jf rt ptt ./backend-permissions.json
jf rt ptc ./backend-permissions.jsonAfter completing these steps, every member of backend-team inherits the permissions defined in the target. See Permission Targets for details on the JSON schema.
Updated about 1 month ago
