Welcome, Guest
Username: Password: Remember me

TOPIC: Can I manage users from command line?

Can I manage users from command line? 3 years 5 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? 3 years 5 months ago #61698

  • wiz561
  • wiz561's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • 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: 3 years 5 months ago by wiz561. Reason: wanted to add comments on what i found.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.102 seconds
Donation Image