Results 1 to 5 of 5

Thread: Delete User

  1. #1
    dc50093 is offline Senior Member
    Join Date
    May 2009
    Posts
    21

    Default Delete User

    Recently we imported more than 32,000 lead records and all seemed to have gone well; that is until we discovered that we now have 302 user records. Originally there were seven users accounts. Clearly the import went astray. If it were five or ten stray records I would simply set the user records as inactive but with this many excess user records I'm at a loss as to what to do. Can anyone offer input relating to what went wrong and, more importantly, what can I do with the 295 excess users accounts that we now have....

    I suspect that the root of the problem may relate to the *.csv import data not having been as clean as it should have been- a stray coma here and their. For example: the coma in "ABC, Inc." should have been removed prior to the import.

    Thanks in advance for any assistance....
    Last edited by dc50093; 2009-06-29 at 07:57 AM.

  2. #2
    sandeeplakshmi is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    bangalore,India
    Posts
    20

    Default Re: Delete User

    Hello dc50093!!

    rather than thinking what to do with the 295 users you can think about the 7 other records.
    form user management listview using 'select all' option just select all the 309 users and change them to 'Inactive' from massupdate,then change the 7 users to active independently. this way you can restrict the 295 users.

    If you want to delete the 295 users from sugar{after doing the above procedure } you can run a simple query like -
    update users set deleted =1 where status = 'inactive';
    -Sandeep Lakshmi
    Be Hungry!! Be Foolish!!!

  3. #3
    dc50093 is offline Senior Member
    Join Date
    May 2009
    Posts
    21

    Default Re: Delete User

    Thank you Sandeep for your reply. Prior to posting my message I had already set the records to inactive or active so this was not the issue per say. It was just bothering me that I could not delete users. Can you expand on the tail end of your post relating to running a query to actually delete the user record? Do I do this from the command line? If so, what is the actual command?

    Thanks so much for your help!

  4. #4
    Spinaker is offline Senior Member
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    96

    Default Re: Delete User

    Dear dc50093,

    You must to login into phpmyadmin (same address in the internet browser, but behind the ip number or name of the server you must to put phpmyadmin, for example 192.168.1.1/phpmyadmin.
    Now you must to put password and login. Rest - mysql or mssql manual

  5. #5
    sandeeplakshmi is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    bangalore,India
    Posts
    20

    Default Re: Delete User

    Hello dc50093,

    If you have phpMyAdmin installed you can easily fire the query against the db.
    if its installed in your local system just type -> http://localhost/phpmyadmin in the address bar of browser
    select the sugar db from the left side listview. then click sql tab on the top - you will be presented with a text box to run query. just paste the query there & its finished.

    if u dont have phpmyadmin then you need to go through terminal.
    in your terminal type ->
    mysql -u yourusername -p {enter}
    you will be prompted for password .
    then msql> prompt appears
    here select your db by typing -> use databasename;
    then type the query i had given & press enter. thats it.
    -Sandeep Lakshmi
    Be Hungry!! Be Foolish!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to delete an User ?
    By vija in forum Help
    Replies: 1
    Last Post: 2008-11-09, 02:11 PM
  2. delete user
    By user1000 in forum Developer Help
    Replies: 5
    Last Post: 2008-10-27, 02:49 PM
  3. How to delete user
    By madgol in forum Help
    Replies: 6
    Last Post: 2007-10-21, 03:45 PM
  4. Delete a User?
    By nzab in forum Help
    Replies: 1
    Last Post: 2004-12-09, 09:17 PM

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
  •