Results 1 to 4 of 4

Thread: Private Contacts

  1. #1
    rickster78 is offline Sugar Community Member
    Join Date
    Nov 2011
    Posts
    11

    Default Private Contacts

    We are just up and running with CE (6.4.0beta6 (Build 7134)) and everything is going well. Except now a few people have requested "private contacts", contacts they can enter that are only available to them and not to other users. Is there any way to do this in CE?

    For example, when a user enters a contact, he could check the "Private" checkbox and the record would only show up for him, not others. Is this possible? If so, how?

    Thanks!

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Private Contacts

    Sugar PRO has this feature with Teams module.
    For sugar CE you could take a look in some custom module.
    Whether do you want to develop this stuff, I can suggest you to overwrite the file view.list.php for contacts module and simulate a search over every listing based on current user.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Private Contacts

    You need to use a combination of the security roles feature (Admin > Role Management) and the Assigned To field that you see on the contact record.

    In a nutshell, you'll want to create a role that dictates that records in the Contacts module are only visible by the owner, who happens to be the user name reflected in the Assigned To field. Adding all the users to said role would then automatically put these rules into play.

    The drawback is that it affects all contacts. It is not as selective as you might want.

    Side note: do not use Beta versions in production. There isn't a formal upgrade path to a production version and Beta versions always have problems (it is the nature of process, not a Sugar thing).
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  4. #4
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Private Contacts

    Create a field (boolean) for the contacts module which you call private. Overwrite the create_new_list_query in the contacts module to include your custom where clause where you only select contacts that either do not have the flag set or that have the flag set and are assigned to the current user. Overwrite view.detail.php and view.list.php and there also check that the user is allowed to see that contact based on your criteria if they manage to get to the detail view direct (e.g. key in a GUID).

    christian.

    Quote Originally Posted by rickster78 View Post
    We are just up and running with CE (6.4.0beta6 (Build 7134)) and everything is going well. Except now a few people have requested "private contacts", contacts they can enter that are only available to them and not to other users. Is there any way to do this in CE?

    For example, when a user enters a contact, he could check the "Private" checkbox and the record would only show up for him, not others. Is this possible? If so, how?

    Thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Private Contacts
    By antoinebelmont in forum Developer Help
    Replies: 2
    Last Post: 2011-07-14, 08:23 PM
  2. Set Contacts as Private
    By jeremib in forum General Discussion
    Replies: 3
    Last Post: 2008-02-26, 09:51 AM
  3. Mark Contacts as Private
    By applematt84 in forum Help
    Replies: 11
    Last Post: 2007-08-19, 01:59 AM
  4. Private appointments/contacts
    By aameijer in forum Help
    Replies: 3
    Last Post: 2006-05-02, 05:51 PM
  5. Private contacts?
    By tanner in forum Help
    Replies: 3
    Last Post: 2005-09-23, 05:53 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
  •