How do I limit the visibility of incidents on a particlular business service to a specific group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 01:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 01:48 AM
Use before query
with condition Business service = value
Script:
if(!(gs.getUser().isMemberOf('groupName'))){
var query = 'business_service!="BusinessService";
current.addEncodedQuery(query);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 02:04 AM
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 02:51 AM
thanks - I will give this a go
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 04:09 AM
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.