Results 1 to 3 of 3

Thread: Programmed Create User

  1. #1
    JohnDix is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default Programmed Create User

    Operating system: Ubuntu. Linux 2.6.15-26-server
    Sugar: Sugar Open Source 4.5.1e
    Webserver: Apache 2.0.55
    PHP: 5.1.2
    MySQL: 5.0.22

    Is there a batch procedure for creating new Sugar users? I need to create many new Sugar users from existing database entries for another environment.

    It did not appear possible to directly enter new user data into MySql, so I I tried to create new user accounts by logging onto the Sugar server from a Java HTTP Client instead of from a browser. I am trying to first log in exactly as though I were using a browser, and then upload some Create User form data, When I first receive the login form, it is accompanied by a PHP session ID in a cookie, but then the server rejects my login attempt by resending the login page, along with a new PHP session ID, but with a good HTTP return code (200). If anyone is familiar with this kind of problem, I would appreciate any advice, because this general approach should address my batch creation probelm.
    Last edited by JohnDix; 2008-02-22 at 03:04 PM.

  2. #2
    tomgerrard is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: Programmed Create User

    Hi John,

    We have just migrated from Act to Sugar - I couldn't find a webservice way of creating users, so I just created entries in the users table which has worked fine for us.... Did you have problems doing it that way?

  3. #3
    JohnDix is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default Re: Programmed Create User

    Thanks very much! You inspired me to retry inserting into the users table, and I did get it to work. On the off chance that I might help you a little in return, I wanted to say that I discovered along the way that the user_hash column is the md5 hash of the user's password.
    Last edited by JohnDix; 2008-02-27 at 10:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Programmatically create user
    By niconel in forum Developer Help
    Replies: 6
    Last Post: 2008-02-25, 01:22 AM
  2. Can't create user
    By cuongtim in forum Help
    Replies: 0
    Last Post: 2006-11-02, 01:22 AM
  3. Create User problems !!!
    By kelvintoo in forum Help
    Replies: 3
    Last Post: 2006-07-24, 10:46 PM
  4. Create User Problems
    By morebob in forum General Discussion
    Replies: 2
    Last Post: 2005-06-23, 01:30 AM
  5. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •