jf rt group-create
Create a new users group in Artifactory.
Synopsis
jf rt group-create <group-name> [options]
Aliases: rt gc
Arguments
| Argument | Required | Description |
|---|---|---|
<group-name> | Yes | The name of the new group |
Options
| Flag | Default | Description |
|---|---|---|
--access-token | — | JFrog access token |
--password | — | JFrog password (for authentication) |
--replace | false | Set to true to replace an existing group of the same name |
--server-id | — | Server ID configured using the jf config command |
--ssh-key-path | — | SSH key file path |
--ssh-passphrase | — | SSH key passphrase |
--url | — | JFrog Artifactory URL (example: https://acme.jfrog.io/artifactory) |
--user | — | JFrog username |
Examples
Create a New Group
jf rt group-create --help
### Create a Group with Replace
```bash
jf rt group-create developers --replace
When to Use
Use jf rt group-create to create a logical grouping of users for access control. Groups simplify permission management — instead of assigning permissions to individual users, assign them to groups and add users to those groups.
Typical access control workflow:
# 1. Create the group
jf rt group-create backend-team
# 2. Add users to the group
jf rt group-add-users backend-team alice,bob,charlie
# 3. Create a permission target for the group
jf rt ptc ./backend-permissions.jsonImportant Notes
- Requires admin privileges on the Artifactory instance.
- Use
--replaceto overwrite an existing group with the same name. - Creating a group does not automatically assign any permissions — you need to create a permission target that references the group.
Updated 8 days ago
