Hr case visibility restriction with business rule

Ramesh01
Tera Contributor

Hi all 

I have few groups 

Like 

1. Group A

2. Group B 

3.Group C and so on

  • I want to make these groups to see cases only assigned to them and they should not see the cases of other groups
5 REPLIES 5

Narsing1
Mega Sage

You can do it via COE Security policy

Thanks,

Narsing

Sandeep Rajput
Tera Patron
Tera Patron

@Ramesh01 If you wish to achieve this using a query business rule, then please refer to the following steps.

 

Screenshot 2024-01-07 at 8.49.41 PM.pngScreenshot 2024-01-07 at 8.57.59 PM.png

Here is the script.

 

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    current.addEncodedQuery('assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744'); //Dynamic filter to check for One of My Assignment groups.

})(current, previous);

Hope this helps.

Hi Sandeep thanks for the response

The above solution is applying to all the groups my requirement is I want to restrict only a few specific from seeing other groups cases

@Ramesh01 Simply add the filter conditions in the business rule

When Assignment group is Group A 

OR

When Assignment group is Group B

OR

When Assignment group is Group C

etc