js-importusers
The js-importusers command may be used to perform bulk import of users stored in CSV file format.
Usage: js-importusers [-options]
Options:
[-file <file>] configuration file
-d <name> the domain name
-f <path> file to import
[-csv | -json] file format option; default: -csv
-t <name> an account template
-s skip bad lines
[-o] overwrite existing accounts
[-db | -api] database or API access flag; default: -api
-h display this help menu
If js-importusers
command is run without options then user will be prompted for necessary information.
File Format
Import file should be plain text with comma separated values and each user on a new line. Non-required fields may be omitted.
Column # | Column Description | Required | Example |
---|---|---|---|
1 |
The full name of user. |
Yes |
John Smith |
2 |
The unique user login. |
Yes |
jsmith |
3 |
The user password. |
Yes |
secret |
4 |
The user root login path. |
Yes /No (not required if template is used) |
C:\users\jsmith |
5 |
The user email address. |
No |
jsmith@test.com |
6 |
The user group name. |
No |
Administrators |
Example
John Smith,jsmith,secret,C:\users\jsmith,jsmith@domain.tx,Administrators
Henry Jones,hjones,secret,C:\users\hjones,hjones@domain.com