Hard-coded example values can create the wrong course and invite an unintended recipient
Source references: 3The executable steps directly use fixed course details and `student@school.edu`. They do not require replacement with a user-confirmed course ID, course details, and student address, or establish a confirmation point before external writes.
If an agent treats the commands as ready to run, an unintended course may be added to the current Google Classroom account and an invitation sent to the wrong address. The recipient may learn that the course exists and gain student access after accepting.
These are execution steps, not a warning or test. Line 24 can directly create a real “Introduction to CS” course under the authorized account, so copying it unchanged would persist the sample attributes. Line 25 sends an invitation, although `COURSE_ID` and the address are evident placeholders, so it would usually fail; if they happen to resolve, it could modify the wrong course or contact an unintended account. The source has no checkpoint to show and confirm final values before either write. Users can require mandatory substitution and confirmation of course details, course ID, and recipient.
1. Create the course: `gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'`2. Invite a student: `gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'`3. List enrolled students: `gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table`Show 2 other places
Create a Google Classroom course and invite students.1. Create the course: `gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'`2. Invite a student: `gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'`3. List enrolled students: `gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table`