Check out the LimeSurvey source code on GitHub!

Can I manage users from command line?

More
5 years 8 months ago #61678 by ernestocivello
Dear, I've to add an user for a survey from a PHP script.
Can I do it?
Can I send the invitation to him after?

Thanks in advance

Please Log in to join the conversation.

More
5 years 8 months ago - 5 years 8 months ago #61698 by wiz561
I'm looking at trying to do the same exact thing. It would be nice to get a real answer because I just got started with limesurvey. This might work, but here's what I've found out...

1) Import users into mysql lime_tokens_<sid> (sid=survey id).
2) Fill in random information into the 'token' column. Make sure it's random.
3) Query the db for the user, email, and token, and formulate the URL using that information.
4) You can then write some code to generate an email outside of limesurvey.

It would be great if others can comment if there's an easier way to do this. Thought i'd share what I found. Here's also a ticket relating to this.

bugs.limesurvey.org/view.php?id=2982
Last Edit: 5 years 8 months ago by wiz561. Reason: wanted to add comments on what i found.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form