Proper filtering for group memberships.