How about using: https://github.com/projecthydra/hydra-head/blob/master/hydra-access-controls/lib/hydra/access_controls_enforcement.rb#L113-L115

```ruby
escape_filter('discover_access_group_ssim', group.pid)
```