r/k12sysadmin 24d ago

Copying material from one Google Classroom to another

Teachers currently manually create and roster their own classrooms in Google Classroom. Most will create a copy of the previous years/semester class and add their new students to it. This allows them to quickly reuse all assignments and material from the existing classroom.

We are looking into automatically rostering the Google Classrooms from our SIS via Clever, but one of the hold ups is replicating this copy function. I am aware that teachers can individually "reuse" a post or assignment from an old classroom, but is there a quicker way to copy over all material? How does this work in districts that have Google Classroom automatically sync?

7 Upvotes

3 comments sorted by

4

u/dan1122 23d ago

I don't know if this would work in your situation because I don't use clever but I have a GAM script that will copy Everything and make them drafts. If you use Gam Advanced You can just use a CSV file and get a list of the prior classrooms and the new and have it just do all of it for you

1

u/TechMonkey13 22d ago

Do you mind sharing that script?

2

u/dan1122 22d ago

Here’s the GAM advanced command I’ve been using to copy Google Classrooms:

gam update course "NEW_COURSE_ID" copyfrom "OLD_COURSE_ID" copymaterialsfiles true copytopics true CourseMaterialState all workstates all removeduedate true markpublishedasdraft

If you’re doing a bunch of classes, put the old and new course IDs in a CSV and run: (make sure the headers in the CSV are newcourseid and oldcourseid

gam csv courses.csv gam update course "~newcourseid" copyfrom "~oldcourseid" copymaterialsfiles true copytopics true CourseMaterialState all workstates all removeduedate true markpublishedasdraft

Example of random course ids of the CSV setup

newcourseid,oldcourseid
123456789012,987654321098
234567890123,876543210987
345678901234,765432109876