MDL-30797 - backup groups: Added a parameter to the groups_assign_grouping function.