# Link a Google Classroom class to a course

PiGi links to Google Classroom with the class's invite link: you paste it on a course and students join the class themselves from their portal. There is no account to connect and nothing is synced — you need a Google Classroom class with invite codes switched on.

Source: https://help.pigi.io/guides/integrations/lms/google-classroom

## Quick answers

**Do I need to connect a Google account to PiGi?**
No. There is no Google Classroom connection in PiGi and nothing to authorise. You
paste the class's invite link on the course, and students use it to join.

**Does PiGi enrol students in Google Classroom automatically?**
No. Each student opens the link and clicks **Join** in Classroom. PiGi does not add
them, remove them or check whether they joined.

**Does anything sync between Google Classroom and PiGi?**
No. Grades, assignments, attendance and membership all stay in Google Classroom.

**Which Google account do I need?**
Any account that can teach in Google Classroom — a Google Workspace for Education
account or a personal Google account. What matters is who your class allows to
join; see the next answer.

**My students can't join the class. Why?**
If your class belongs to a Google Workspace for Education domain, your Google admin
decides who may join. Students using personal Gmail accounts can join only when
**Who can join classes in your domain** is set to **Any user**. Students must also be
signed in to Google with the account they mean to use.

**Where do I find the invite link?**
At classroom.google.com, on the class card, click **More** → **Copy invite link**.
If the option is missing, turn on invite codes in the class settings.

**Can a course have Moodle and Google Classroom together?**
Yes. **Learning platforms** on a course takes any number of rows, and students get one
button per platform.

## What this does

A Google Classroom link gives students a button on their course in the PiGi portal
that takes them to your class, so they don't need to hunt for an email or class code.
PiGi charges nothing extra for it; for what Google charges, see the Google Workspace
for Education editions and pricing page.

## Before you start

- The **admin** role in PiGi.
- A Google Classroom class for the course, created by the teacher's Google account.
- The PiGi course already created.

## Set up Google Classroom

1. Sign in at classroom.google.com and open the class.
2. Make sure invite codes are on: open the class **Settings** and, next to **Manage
   invite codes**, choose to turn them on.
3. Back on the class list, on the class card click **More** → **Copy invite link**.
4. If your school uses Google Workspace for Education and students join with
   personal accounts, ask your Google admin to check **Admin console → Apps → Google
   Workspace → Classroom → Class settings → About class membership**, and set **Who
   can join classes in your domain** to allow them.

## Connect it to PiGi

1. Open the course at **Courses** → the course → **Details** tab.
2. Under **Learning platforms**, click **Add**.
3. Choose **Platform** → **Google Classroom** and paste the invite link into **Link**.
4. Click **Done**, then **Save changes** on the course details card.

## Test it

1. Open a student's course and its **Learning** tab. The Google Classroom row shows
   the link, "Students self-join with the class invite link." and an **Open class**
   button.
2. Sign in to the portal as a test student (for example person@examplecompany.com),
   open the course and click the **Google Classroom** button.
3. Classroom should open the class with a **Join** button. Click it, then check the
   student appears under **People** in the class.

## Troubleshooting

| What you see | What to do |
|---|---|
| The link opens Classroom but there is no class | Invite codes were reset or turned off. Copy the new invite link and update the row on the course. |
| Student is told they can't join | Check the class-membership setting in the Google Admin console, and that the student is signed in with the right Google account. |
| Student joined with the wrong account | They should use **Switch accounts** in Google, then open the link again. |

## Known limitations

- Resetting invite codes in Classroom breaks the link already saved in PiGi; update
  it on every course that uses it.
- PiGi cannot show whether a student has joined. Check **People** in Classroom.
- Removing a student from a PiGi course does not remove them from the class.

## Sources

- [Invite students to your class — Classroom Help](https://support.google.com/edu/classroom/answer/6020282?hl=en&co=GENIE.Platform%3DDesktop)
- [Join a class with a class link — Classroom Help](https://support.google.com/edu/classroom/answer/15604494?hl=en&co=GENIE.Platform%3DDesktop)
- [Configure class settings — Classroom Help](https://support.google.com/edu/classroom/answer/6173514?hl=en)
