Create User¶
The admin users create command creates a new user from a JSON definition file. Requires admin role or higher. Non-superadmin users cannot assign the superadmin role.
Parameters¶
| Parameter | Description |
|---|---|
--file, -f |
JSON file with user definition (required). |
🖥️ Basic Usage¶
Usage: easytask admin users create [OPTIONS]
Create a new user from a JSON file.
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --file -f PATH JSON file with user definition [required] │
│ --help -h Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────╯
User Schema
Sample Input¶
user_def.json
{
"username": "jsmith",
"password": "SecurePass123!",
"email": "jsmith@example.com",
"firstName": "John",
"lastName": "Smith",
"roles": ["user"],
"enabled": true
}