Go to file
Paolo Asperti b731b3382d first import 2015-10-18 17:20:08 +02:00
README.md first import 2015-10-18 17:20:08 +02:00
importa_utenti.pl first import 2015-10-18 17:20:08 +02:00
test.csv first import 2015-10-18 17:20:08 +02:00

README.md

nethserver-usercsvimport

Batch import a lot of users and groups. You need a CSV file with this layout:

username Firstname Lastname group password

See test.csv file for a sample. You can use the TAB as a separator (this is the default), or whatever character you want. Beware that Microsoft Excel uses the semicolon (;) as a separator instead the comma (,) for a CSV file (COMMA separated value).

To import, simply call the script, by passing the CSV file as a parameter and the separator as the second parameter.

./importa_utenti.pl test.CSV
./importa_utenti.pl test.CSV ";"
./importa_utenti.pl test.CSV ","

The import process will create all non-existing groups. If the user already exists then the line is skipped (so if you specified a nonexistent group for this user, the group won't be created).