GroupAssignment function

Assign to groups based on GroupConditions