Results 1 to 4 of 4

Thread: How do I delete a user V4.5.1h (Build 1104)

  1. #1
    whyzer is offline Junior Member
    Join Date
    Dec 2007
    Posts
    2

    Default How do I delete a user V4.5.1h (Build 1104)

    When installing I made the error of loading all the sample data. How do I delete the "sample" users???

    Thanks

  2. #2
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: How do I delete a user V4.5.1h (Build 1104)

    You con't do this but you can set users in Inactive status. It's a protection because usually user's are assigned to others objects.

  3. #3
    whyzer is offline Junior Member
    Join Date
    Dec 2007
    Posts
    2

    Default Re: How do I delete a user V4.5.1h (Build 1104)

    Not exactly the answer I was looking for. I had already set them to inactive I was trying to tidy things up a bit.

    Thanks

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

    Default Re: How do I delete a user V4.5.1h (Build 1104)

    In a SugarCRM 4.5.1.h installation you can recognize the demo user data on the id of the users table entries.

    user admin has always id = 1
    demo users have ids like jim_id, chris_id ,..
    normal users have timestamp ids like 14bdd19b-dda6-ba25-e68d-475d646cabab

    So you can delete alle demo data in mySQL QueryBrowser by doing the following:

    1. delete all customfield table entries in tables *_cstm.

    example (accounts):
    Code:
    delete from accounts_cstm 
    where id_c in  
      (select id from accounts where assigned_user_id like '%_id');
    2. delete alle reference table entries

    example (accounts x contacts):
    Code:
    delete from accounts_contacts 
    where account_id in
       (select id from accounts where assigned_user_id like '%_id');
    delete from accounts_contacts 
    where contact_id in
       (select id from contacts where assigned_user_id like '%_id');
    3. delete all audit table entries

    example (accounts):
    Code:
    delete from accounts_audit 
    where parent_id in 
      (select id from accounts where assigned_user_id like '%_id')
    or created_by like '%_id';
    4. delete all standard object table entries

    example (accounts):
    Code:
    delete from accounts where assigned_user_id like '%_id';
    5. finally delete all demo users

    example:
    Code:
    delete from users where id like '%_id';
    BEFORE you start make a BACKUP of your database!!!

    DO NOT START WITHOUT BACKUP !
    DO NOT START WITH RUNNING WEB APPLICATION!

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 user account
    By bmk in forum General Discussion
    Replies: 13
    Last Post: 2010-03-12, 08:39 PM
  2. Delete Employee or User problem
    By ctk in forum General Discussion
    Replies: 0
    Last Post: 2006-05-12, 06:10 PM
  3. Replies: 0
    Last Post: 2005-10-11, 03:18 AM
  4. Delete a User?
    By nzab in forum Help
    Replies: 1
    Last Post: 2004-12-09, 09:17 PM
  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
  •