Programicaly create users

More
5 days 9 hours ago #171239 by mindau
mindau created the topic: Programicaly create users
I have a list with usernames and emails and I need to import them to internal database. The first idea is to use custom SQL inserts, but it is quite heavy.

I think i going to generate random password and all users should use Forgot Password function in order to set proper password.

My questions is:

Maybe I can use model class or other class outside framework where User object with permissions would be inserted together?
Can I do it easier by developing a plugin?

Please Log in or Create an account to join the conversation.

More
5 days 2 hours ago #171245 by DenisChenu
DenisChenu replied the topic: Programicaly create users
This week i have to create 50 admin user, i do it manually (to have the mail sended ) … You can surely create a plugin for this BUT : you use it one time …

Example of user create : github.com/LimeSurvey/LimeSurvey/blob/d3...AP/AuthLDAP.php#L207

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!