Page 1 of 1

Import user available In OPENKM?

PostPosted:Tue May 31, 2011 3:53 am
by tun001757
Hi All,

Is there a way to import user from text file or csv in OPENKM?

Or have to create user manually one by one?

Regards,

Tun

Re: Import user available In OPENKM?

PostPosted:Tue May 31, 2011 7:10 am
by jllort
You can create a SQL script and execute in administration view.

Re: Import user available In OPENKM?

PostPosted:Tue Mar 22, 2016 7:15 am
by TMEBM
jllort wrote:You can create a SQL script and execute in administration view.
Hello Need help here. Where can i find the SQL script to import users from CSV?

Thanks.

Re: Import user available In OPENKM?

PostPosted:Thu Mar 24, 2016 10:22 am
by jllort
You should create yourself, but here some interesting url what can help you:
Here sample for reading csv files -> http://wiki.openkm.com/index.php/CSV_importer

And for creating users you need to execute OKMAuth methods
OKMAuth.getIntance().createUser(null, user, password, email, name, active);

Take a look here:
https://docs.openkm.com/apidoc/com/okm/6.3.1/ ( you should be interested in api com.openkm.api.*; )
https://docs.openkm.com/apidoc/com/okm/ ... MAuth.html