The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Can I manage users from command line?

Can I manage users from command line? 1 year 11 months ago #61678

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
The administrator has disabled public write access.

Re: Can I manage users from command line? 1 year 11 months ago #61698

  • wiz561
  • wiz561's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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: 1 year 11 months ago by wiz561. Reason: wanted to add comments on what i found.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.165 seconds
Donation Image