Switching off Google Classroom class invite codes

155 views
Skip to first unread message

Aisha Ahmed

unread,
Sep 9, 2022, 12:22:31 AM9/9/22
to GAM for Google Workspace
Is there a way to use GAM to turn off the invite codes for a large number of Google Classrooms?

Ross Scroggs

unread,
Sep 9, 2022, 10:45:24 AM9/9/22
to google-ap...@googlegroups.com
Aisha,

What are invite codes?

Ross

On Thu, Sep 8, 2022 at 9:22 PM Aisha Ahmed <aisha...@lgs.edu.pk> wrote:
Is there a way to use GAM to turn off the invite codes for a large number of Google Classrooms?

--
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/c8b4edb0-5e36-494e-8173-65e4eb8bfa1dn%40googlegroups.com.


--

Ronny J. Laluyan

unread,
Sep 9, 2022, 12:56:03 PM9/9/22
to google-ap...@googlegroups.com

Maybe this is the said invite code at attached file. (used to be called class code) 

Screenshot_2022-09-10-00-51-18-430_com.google.android.apps.classroom.jpg

Ross Scroggs

unread,
Sep 9, 2022, 1:05:49 PM9/9/22
to google-ap...@googlegroups.com
Aisha/Ronny,

I don't see anything in the Classroom API that supports these codes.

Ross



--

Ronny J. Laluyan

unread,
Sep 11, 2022, 1:05:29 PM9/11/22
to google-ap...@googlegroups.com
Hello Ross (and Aisha),

in Classroom API it is known as enrolmentCode

When I run :
gam print courses todrive

I can see the enrolmentCode for those classes who had them turned on

image.png

After I tried to turn it off in one of the classroom and check the result with gam print courses
the enrolmentCode became blank (or NULL)

image.png

So I think you can just set with gam command to make/update the enrolmentCode (it is enrollmentcode in GAM command list under CourseFiledName) to NULl/ blank
but I have tried every possible gam update command, it is not working

image.png

Help is appreciated.

Ross Scroggs

unread,
Sep 11, 2022, 3:19:47 PM9/11/22
to google-ap...@googlegroups.com
The enrollmentCode is a read-only field; it can not be modified or deleted.

Ross
----
Ross Scroggs



On Sep 11, 2022, at 10:05 AM, Ronny J. Laluyan <ro...@mis-mdo.sch.id> wrote:

Hello Ross (and Aisha),

in Classroom API it is known as enrolmentCode

When I run :
gam print courses todrive

I can see the enrolmentCode for those classes who had them turned on

<image.png>

After I tried to turn it off in one of the classroom and check the result with gam print courses
the enrolmentCode became blank (or NULL)

<image.png>

So I think you can just set with gam command to make/update the enrolmentCode (it is enrollmentcode in GAM command list under CourseFiledName) to NULl/ blank
but I have tried every possible gam update command, it is not working

<image.png>

Help is appreciated.
Reply all
Reply to author
Forward
0 new messages