How do I limit the visibility of incidents on a particlular business service to a specific group

June Unwin
Tera Contributor

I am onboarding a new team and their requirements are for all their incidents to be visible only to their team and nobody else.  I have set up routing based on business service to their team, but am not sure how to achieve the security aspect of this.  I've not used a Before query business rule and no clue on scripting so all help would be gratefully accepted.

12 REPLIES 12

Snow Learners
Kilo Guru

Use before query 

with condition Business service = value

 

Script:

 

if(!(gs.getUser().isMemberOf('groupName'))){

 var query = 'business_service!="BusinessService";

 current.addEncodedQuery(query);

}

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

 

thanks - I will give this a go

HI Sorry - this is did not restrict other fullfillers from other groups seeing the incidents from the one specified group.  I added in the group name and the business service.