Forums / Setup & design / Importing users from csv
Andy Woods
Wednesday 18 May 2011 6:47:00 am
Hi,
Is it possible to import users from a csv file?
I have searched the forum and found a few posts but I haven't found any that describe a simple process to do it.
Thanks,
Andy
Jérôme Vieilledent
Wednesday 18 May 2011 7:05:05 am
Hello
You can do so with SQLIImport extension ;)
Wednesday 18 May 2011 7:58:54 am
I've had a quick look at the extension but can't see any information that explains how to import users.
Have you used it to import users? Is it a straightforward process?
Is this the easiest way to import users?
Thursday 19 May 2011 1:05:53 am
Hi Andy
Users in eZ Publish are actually content objects with an ezuser attribute, so it is straightforward :).
I already made an implementation of user import in my JanrainAuth extension (to connect user from social networks like Facebook). Take a look at the JanrainAuth class, in getUser() method.
You also might want to read the SQLIImport fromString() Appendix to learn how to deal with ezuser datatype. Take also a look at the documentation because there is a set of classes to handle CSV files ;).
Cheers !
Friday 20 May 2011 2:32:22 am
Has anyone uses the user_import extension?
http://projects.ez.no/user_import
I've installed it but I can't work out how to use it.
scrieler _
Monday 23 May 2011 4:39:28 am
Can be that this isn't compatible with your ez version.
Try the sqliimport extension first, looks good :)