pass groups back to `set_groups!` method on resource