Copy a Classroom by GAM

199 views
Skip to first unread message

Elsa LAI

unread,
Aug 30, 2021, 8:47:57 AM8/30/21
to GAM for Google Workspace
When I copy a Classroom using the web version, all materials/assignments are set as drafts without being published. This is what I want to achieve using GAM.

How can I get the same result when I copy a Classroom using GAM?  
According to  GAMADV-XTD3 wiki , I can't find any attributes for marking published materials as drafts.  It seems that only assignments can be set as drafts (workstates markpublishedasdraft).  Is it really the case?

gam create|add course [id|alias <CourseAlias>] <CourseAttribute>* 
 [copyfrom <CourseID> 
 [announcementstates <CourseAnnouncementStateList>] 
 [materialstates <CourseMaterialStateList>] 
 [workstates <CourseWorkStateList>] 
       [markpublishedasdraft [<Boolean>]] 
       [removeduedate [<Boolean>]]       
       [mapsharemodestudentcopy edit|none|view] 
 [copymaterialsfiles [<Boolean>]] 
 [copytopics [<Boolean>]] 
 [members none|all|students|teachers]] 
 [logdrivefileids [<Boolean>>]]


Ross Scroggs

unread,
Aug 30, 2021, 1:39:01 PM8/30/21
to google-ap...@googlegroups.com
Elsa,

I'll update gam to do this.

Ross



Disclaimer: This email (and any attachments) may contain privileged and confidential information and is solely for the use of the intended recipient(s). Any unauthorized dissemination, distribution or copying of this email is strictly prohibited. If you have received this email by mistake, please notify the sender immediately and delete this email.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0cc8aa62-ed96-43d8-878c-148e50bd7a08n%40googlegroups.com.


--

Ross Scroggs

unread,
Aug 30, 2021, 5:51:53 PM8/30/21
to google-ap...@googlegroups.com
Elsa,

Try this with version 6.07.18. markpublishedasdraft now applies to materials.

Ross
--

Elsa LAI

unread,
Aug 31, 2021, 12:49:36 PM8/31/21
to GAM for Google Workspace
Thank you so much, Ross!!! 
Reply all
Reply to author
Forward
0 new messages