Fixes #5367 returning all groups that a user belongs to - need to deprecate this function