Way to import 100+ new users?
Way to import 100+ new users?
Is there a way to import new users in EFA from like a CSV file instead of having to manually create 100+ new users?
- shawniverson
- Posts: 3608
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Way to import 100+ new users?
No tool exists for this (yet), but I could create one if you are interested.
Re: Way to import 100+ new users?
That would be wonderful Shawn. We need to add around 160 users and would be nice if we could do a csv or something of the sort to import instead of having to manually create each one. How long would something like that take?
- shawniverson
- Posts: 3608
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Way to import 100+ new users?
Shouldn't take very long at all. This weekend?
Re: Way to import 100+ new users?
yeah, that would be awesome!
Re: Way to import 100+ new users?
Hey Shawn, no rush, but just checking back with you on this. Thanks!
Re: Way to import 100+ new users?
I was just looking to see if there was such a thing as csv import. Thanks for any tool you can create!
- shawniverson
- Posts: 3608
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Way to import 100+ new users?
Almost ready. Testing it now.
-
- Posts: 49
- Joined: 11 Jun 2014 21:43
Re: Way to import 100+ new users?
Just FYI:
A tool would be awesome. But just wanted to share that I have been able to do this with MS Excel and Webmin. Webmin is a tool that EFA has installed that allows you to dig right to the users mysql table and download the CSV, then edit it and upload. Its very easy to do. A tool would be great, but keep in mind for other areas in mysql that you may want to edit one day (ex:blacklist etc)
/dave
A tool would be awesome. But just wanted to share that I have been able to do this with MS Excel and Webmin. Webmin is a tool that EFA has installed that allows you to dig right to the users mysql table and download the CSV, then edit it and upload. Its very easy to do. A tool would be great, but keep in mind for other areas in mysql that you may want to edit one day (ex:blacklist etc)
/dave
- shawniverson
- Posts: 3608
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Way to import 100+ new users?
Import script is ready 
To use, create your user.csv file as follows:
username,password,fullname,type
where type = U | A | D
U=user
A=admin
D=domain admin
To append new users:
To overwrite users (except admins and domain admins):
Please note that the csv file is not thoroughly validated. Certain characters, such as a ' or other special characters require proper escaping.
Back up prior to using!

Code: Select all
wget https://raw.githubusercontent.com/E-F-A/v3/master/tools/userimport.sh
chmod ugo+x userimport.sh
username,password,fullname,type
where type = U | A | D
U=user
A=admin
D=domain admin
To append new users:
Code: Select all
sudo /path/to/userimport.sh -f user.csv -a
Code: Select all
sudo /path/to/userimport.sh -f user.csv -o
Back up prior to using!
Re: Way to import 100+ new users?
Will this work with the current version 3.0.1.5?
This post if over a year old and wondering if password encryption had changed or not.
Thanks!!
Update: I did try it with 3.0.1.5 and it did work, but the password field looks different but I was able to log in, probably because the default uses more then just md5 encryption, but it did work. I have an attachment that shows the pw's from the import (hilited in yellow) compared to the users added thru user manager in Mailwatch.
This post if over a year old and wondering if password encryption had changed or not.
Thanks!!
Update: I did try it with 3.0.1.5 and it did work, but the password field looks different but I was able to log in, probably because the default uses more then just md5 encryption, but it did work. I have an attachment that shows the pw's from the import (hilited in yellow) compared to the users added thru user manager in Mailwatch.
- Attachments
-
- efa-import-pass.PNG (28.7 KiB) Viewed 8084 times
Re: Way to import 100+ new users?
Is there a way to import users that will be ldap integrated? Have a multi domain EFA configuration using different LDAP servers, but would like to create users without having to have them all log in separately.