Custom Visibility Code

Hi Everyone,

Does anyone know if it's possible to have custom visibility code that will show a module results in the sub panels under a record but not allow the user to open that result or view the result in a report unless that have access to the team associated with the result? Hopefully the example below makes sense.

Example:

Organization #1:
Opportunity 1 - Blue Team
Opportunity 2 - Red Team

In the example above, I would want to open up organization #1 and see both opportunities below it. However if I am only on Red team then I should not be able to open up Opportunity 1 as it is assigned to Blue team or see it in a report.

Thanks in advance!

Parents
  • Hi Dan,

    I don't have a direct answer, but I wonder if you can disable the "Record View" role option with Team Based Permissions to achieve what you're looking to do?

    From the first link above:

    When "Record View" is set to "None", the module's list view displays record's names, but the names are not hyperlinked to their corresponding record views like they are for users with the View permission enabled.

    This help article, https://support.sugarcrm.com/Knowledge_Base/Users_Teams_Roles/Introduction_to_Roles, may help as well depending on your familiarity with Roles.

    I hope this helps!


    Alex Nassi
    Digital CX Operations Director
    SugarCRM

  • Record View to None might switch off access for editing for all the Opps for the Team members -  neither Red nor Blue team could access to Opps even for editing their Opp records.
    In addition, OOTB "Ownership" in Sugar is personal (represented by assignedTo user), not team-based, and therefore restricting by Ownership could hardly work too.
    Am I wrong?

    Best Regards,
    Dmytro Chupylka

    integroscrm.com
    We make work in Sugar CRM system faster, more convenient and efficient

  • Hi:)

    Looks like Team-Based Permissions should solve this task:
    Let's say - Sarah has default teams: Global (primary) and Blue (selected)

    Will has default teams: Global (primary) and Red (selected)

    Both they are under Role that has the following settings:

    When Sarah creates Opportunity 'BLUE TEAM', this Opportunity has Teams Global (as primary) and Blue (with 'enabled additional permissions')

    When I login as Will, I see 2 Opportunities on Subpanel (because in Will's Role there is 'All' access to List and Will is in Global Team), but I can't open record view from Blue Team (because in the Role there is 'Owner & Selected Teams' and neither Will is Owner nor part of a Blue Team).

    And Sarah sees two Opp-s as well, but can open Opp of Blue Team:

    And let's say there is Sally from the Blue team - Sally sees both Opps, but can open only the blue one:

    what are your thoughts on using Team-Based permission to solve this task?

Reply
  • Hi:)

    Looks like Team-Based Permissions should solve this task:
    Let's say - Sarah has default teams: Global (primary) and Blue (selected)

    Will has default teams: Global (primary) and Red (selected)

    Both they are under Role that has the following settings:

    When Sarah creates Opportunity 'BLUE TEAM', this Opportunity has Teams Global (as primary) and Blue (with 'enabled additional permissions')

    When I login as Will, I see 2 Opportunities on Subpanel (because in Will's Role there is 'All' access to List and Will is in Global Team), but I can't open record view from Blue Team (because in the Role there is 'Owner & Selected Teams' and neither Will is Owner nor part of a Blue Team).

    And Sarah sees two Opp-s as well, but can open Opp of Blue Team:

    And let's say there is Sally from the Blue team - Sally sees both Opps, but can open only the blue one:

    what are your thoughts on using Team-Based permission to solve this task?

Children