Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

But is that a scalable solution? You would have to always adjust the condition?

@Ramesh01 : Isn't there any logic you have for "why only these groups should see only their cases"? Typically, I came across the following scenarios:

- You have one role (not group) that is allowed to see all cases

- You have then another role where the users are limited to either:

a) the assignment group of the HR Case

b) based on any other logic like "country of the subject person"

 

Furthermore, even if you would need to set it based on a condition, I would strongly suggest to not overload your condition filtering and rather either:

- Create a property to store these "special groups"

- [Would prefer that] create a "type" on the Assignment Group and run only the logic based on that type so that you can easily add/remove groups from your logic