User Management
jf rt user-create
Create a new user in Artifactory with username, password, and email.
Synopsis
jf rt user-create <username> <password> <email> [options]
Aliases: none
Arguments
| Argument | Required | Description |
|---|---|---|
<username> | Yes | Username for the new user |
<password> | Yes | Password for the new user |
<email> | Yes | Email address for the new user |
Options
| Flag | Default | Description |
|---|---|---|
--access-token | — | JFrog access token |
--admin | false | Set to true to create an admin user |
--password | — | JFrog password (for authentication) |
--replace | false | Set to true to replace existing users or groups |
--server-id | — | Server ID configured using jf config |
--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 user to join |
Examples
Help
jf rt user-create --helpBasic Usage
jf rt user-create <username> <password> <email> --url=<artifactory-url> --access-token=<your-token>Create User with Groups
jf rt user-create <username> <password> <email> --users-groups developers,readersCreate Admin User
jf rt user-create <username> <password> <email> --adminWhen to Use
Use jf rt user-create to create a single user in Artifactory. For bulk user provisioning, use jf rt users-create with a CSV file instead.
Common scenarios:
- Service accounts: Create dedicated service accounts for CI/CD pipelines
- Testing: Create temporary users for integration testing (delete them after with
jf rt users-delete) - Automation: Part of an onboarding script that creates a user, adds them to groups, and sets permissions
Important Notes
- Requires admin privileges on the Artifactory instance.
- The
<password>argument is the user's login password, not the CLI's authentication password. The--passwordflag (in Options) is for authenticating the CLI to Artifactory. - Use
--replaceto overwrite an existing user with the same username. - Passwords are sent over HTTPS. Ensure your Artifactory instance uses TLS.
Updated about 1 month ago
