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

ArgumentRequiredDescription
<username>YesUsername for the new user
<password>YesPassword for the new user
<email>YesEmail address for the new user

Options

FlagDefaultDescription
--access-tokenJFrog access token
--adminfalseSet to true to create an admin user
--passwordJFrog password (for authentication)
--replacefalseSet to true to replace existing users or groups
--server-idServer ID configured using jf config
--ssh-key-pathSSH key file path
--ssh-passphraseSSH key passphrase
--urlJFrog Artifactory URL (example: https://acme.jfrog.io/artifactory)
--userJFrog username
--users-groupsComma-separated list of groups for the new user to join

Examples

Help

jf rt user-create --help

Basic 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,readers

Create Admin User

jf rt user-create <username> <password> <email> --admin

When 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 --password flag (in Options) is for authenticating the CLI to Artifactory.
  • Use --replace to overwrite an existing user with the same username.
  • Passwords are sent over HTTPS. Ensure your Artifactory instance uses TLS.


What’s Next

To provision users at scale, see jf rt users-create.