Results 1 to 4 of 4

Thread: Limit User views according to detail

  1. #1
    Selageth is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    16

    Default Limit User views according to detail

    Hello again,

    I've currently set up an instance of SugarCRM CE 5.1.0 which is running fine with multiple users. What I require now is a way to limit the individual users view on opportunity entries; more specifically, the value of a custom field. For example:

    User "Joe.Guy" should be able to see all opportunities (and search for them) which have the entry "ForJoe" in the custom field "viewfilter_c".

    User "Susy.Somebody" should be able to see all opportunities (and search for them) which have the entry "ForSusy" in the custom field "viewfilter_c".

    Neither of them should be able to view or search for opportunities which have a different entry for the viewfilter-custom-field than the ones corresponding to them (as stated above).


    Is something like this possible? Maybe by tweaking around with roles?


    Thanks in advance for any hint or help regarding that matter!

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Limit User views according to detail

    Not without some custom code ... if it's a simple matter of restricting access to individuals' own records ... then you could investigate admin>roles and see if this can be user, failing that then SecuritySuite in sugarforge will give you some additional segmentation possibilities

  3. #3
    Selageth is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Limit User views according to detail

    I see. Hmm. I also pondered the thought of using the "User" Role for this, so every user can only see his own Opportunities. Question is: does the role use the "Created_by" user, or the list of the "assigned_user" users?

    If the latter is the case, I could easily write a SQL script that adds a user as "assigned user" to his or her corresponding opportunity, and let this fire daily which would be perfectly fine.

  4. #4
    Selageth is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Limit User views according to detail

    And indeed it works like a charm.

    I have created a new role with restricted privileges for viewing, listing and/or editing opportunities, which is given to all external users. Those users are automatically assigned to their corresponding opportunities by using a little bit of custom MySQL code and a cron job.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Print multiple Detail Views in one go?
    By Sparrowhawk in forum Help
    Replies: 0
    Last Post: 2009-06-18, 04:11 PM
  2. can the page limit of list views be changed
    By stevec in forum Developer Help
    Replies: 1
    Last Post: 2006-06-28, 02:57 PM
  3. pagination in detail views
    By arnoldcano in forum Feature Requests
    Replies: 3
    Last Post: 2005-06-28, 05:12 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
  •