Assign users to group when saving groups