Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: deleting accounts

  1. #1
    sk1983 is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    41

    Default deleting accounts

    hello?

    can anybody tell me how I can delete an account in Sugar5?
    I've already search on the forum and I found only topics of 2005 and of sugar 3.5.
    there I read about a script to input in the readview.html in the usermap.
    or that it is not possible to delete the accounts

    but, is there no possilbe way to delete the accounts in Sugar5?

    can Anybody telll me how I can delele some accounts?

    greets,

    Stefan

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: deleting accounts

    Hi, sk1983

    Are you talking about the Accounts module itself or the User module?
    Account records is deletable but User I think not through layout.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    sk1983 is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    41

    Default Re: deleting accounts

    Hey Andre,

    I'm talking about the user management in the admin tab.
    you have only the choice edit and clear, but I cannot find a delete button to delete some accounts.

    Is it now clear?

    greets,

    Stefan.

  4. #4
    JVWay is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Corvallis, Oregon
    Posts
    452

    Default Re: deleting accounts

    No, there is no facility to "delete" an account. You set them either active or inactive. If you set to inactive the system will ask if you want to assign records that belonged to that user to another. I have deleted users through the database but you stand the chance of leaving orphaned records around. I took the step of querying most of the other tables to see if that users id existed.

    This was early on and I didn't feel it was too dangerous. Don't know if I'd want to do it now.
    Jerry Way
    Business Process Administrator

    Sugar 6.1.4 Professional
    (Testing 6.1.2)
    LAMP on Centos 5
    PHP 5
    MySQL 5
    Apache 2.2

  5. #5
    sk1983 is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    41

    Default Re: deleting accounts

    Hey Jerry,

    I work with a custom module form and I maked a new contact with a test-account so the record is assigned to the test-account, but if I go to the user management and set the Test-account on Inactive then I dont get the message if I want to assing the record to a other.

    But, You wanna tell me that if a worker that works with sugar, and the worker is leaving the company, that you cannot delete this persons-account even is it for 5years or more. thats realy strange. Is there no other solution to delete a account?

    greets,

    Stefan.

  6. #6
    JVWay is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Corvallis, Oregon
    Posts
    452

    Default Re: deleting accounts

    At this point it's only through direct interaction with the database. Use a MySQL admin tool or connect through ODBC using OpenOffice Base or Access. You should check for orphaned records or potential orphaned records like the case of a custom module and reassign or delete.

    I know there is ongoing discussion regarding this and I have seen other systems where they don't let you actually delete the account.
    Jerry Way
    Business Process Administrator

    Sugar 6.1.4 Professional
    (Testing 6.1.2)
    LAMP on Centos 5
    PHP 5
    MySQL 5
    Apache 2.2

  7. #7
    tomgood is offline Junior Member
    Join Date
    Apr 2008
    Posts
    2

    Default Re: deleting accounts

    Hi, everyone.

    Please teach me how to delete users/accounts with mysqladmin,
    because I'm poor at mysql...

    Thanks,

    Tom

  8. #8
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: deleting accounts

    Hi, tomgood

    If you really want and need to delete Users then:

    1. Access the desired database using phpmyadmin;
    2. Go to the users table;
    3. Click in the link Search and fill into user_name, click in Run.

    Then it will be visible only the user you want to delete.
    So you can edit it and change the deleted field from 0 to 1.

    Cheers.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  9. #9
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Default Re: deleting accounts

    Hi Stefan!

    I think that you should only update users table.
    If you remove the row from database you can have some problems with existing data.
    Also it is possible to customize your sugarcrm so you can delete users from sugarcrm user management. (you can ask us to do it if you want)

    Regards,
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  10. #10
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: deleting accounts

    Yes you should not delete users, but if everybody does only things he should do, we would drive in storeage cars like freddy flintstone....

    For version 4.5.1 I described in thread http://www.sugarcrm.com/forums/showthread.php?t=28209 how to delete the demo users and their data from the database.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Accounts, Contacts and B2C implementations
    By organi in forum General Discussion
    Replies: 46
    Last Post: 2010-05-23, 07:04 PM
  2. Replies: 2
    Last Post: 2007-03-23, 04:20 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Replies: 0
    Last Post: 2006-07-07, 02:14 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
  •