Add a method to filter records based on user group

The new user group feature is really nice but it doesn’t allow yet to filter records based on it. It only allow permission based filtering using a contextual permission which isn’t what we always want.

I was trying to make a issue record list for multiples managers and their teams while still allowing to view all issues in another layout if needed. As a contextual role for a issue user or it’s manager can’t be applied to a specific page or page layout and isDescendant function isn’t available for now within a prefilter, I have a hard time doing that. The last way it could be done would be to have a record list that can bypass permissions based filtering but I’m not sure it’s desirable.

Do you think something could be done for this use case ? My last option would be to have a role for each user group and creating a layout for each but it’s error prone and time consuming.