As an instructor, you can manually add students to a group in both published and unpublished courses. Alternatively, you can choose to automatically assign students to groups or create and assign students to groups by importing a CSV file.
Note: In group assignments, all students should be assigned to groups before the assignment is published. Grades and submissions may be affected for students who were not in a group at the time of assignment submission but who were later added to a group.