jf rt users-create
Create new users in Artifactory from a CSV file with usernames, passwords, and emails.
Synopsis
jf rt users-create --csv <path> [options]
Aliases: rt uc
Arguments
| Argument | Required | Description |
|---|---|---|
| — | — | No positional arguments. Use --csv for the file path |
Options
| Flag | Default | Description |
|---|---|---|
--access-token | — | JFrog access token |
--csv | — | Path to a CSV file. First row must be headers: username, password, email |
--password | — | JFrog password (for authentication) |
--replace | false | Set to true to replace existing users or groups |
--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 |
--users-groups | — | Comma-separated list of groups for the new users to join |
Examples
Create Users from a CSV File
jf rt users-create --helpCreate Users with Group Assignment
jf rt users-create --csv ./users.csv --users-groups developers,readersReplace Existing Users
jf rt users-create --csv ./users.csv --replaceCSV Format
The CSV file must contain these headers in the first row: username, password, email.
username,password,email
alice,secret1,[email protected]
bob,secret2,[email protected]When to Use
Use jf rt users-create for bulk user provisioning — for example, when onboarding an entire team or migrating users from another system. Prepare a CSV file and run a single command.
Typical onboarding workflow:
# 1. Create users from CSV
jf rt users-create --csv ./new-team.csv --users-groups developers,readers
# 2. Verify they exist (using Artifactory UI or API)
# 3. Create a permission target for the team
jf rt ptc ./team-permissions.jsonImportant Notes
- The CSV file must have headers:
username,password,emailin the first row. - Requires admin privileges on the Artifactory instance.
- Use
--replaceto update existing users if they already exist. - Passwords in the CSV are sent over HTTPS. Do not commit CSV files with real passwords to version control.
Updated about 1 month ago
