Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect Google Workspace SSO

Connect your own Google Workspace as your organization's sign-in for Herd, from Settings, without waiting on Herd: create an OAuth client, test it on yourself, then turn it on.

Overview

Herd connects to Google Workspace over OpenID Connect, through an OAuth client in your own Google Cloud project. You set it up yourself in Settings → General → Access → Sign-in, in four steps:

  1. Create the OAuth client in Google.

  2. Enter its credentials in Herd.

  3. Test sign-in, on yourself.

  4. Turn on SSO.

Nothing changes for your organization until step 4. If anything is wrong, your organization keeps signing in exactly as it does today.

This is for your organization's own Google Workspace. If your organization was created with Sign up with Google, Herd already runs its Google sign-in and the Single sign-on card says so. Contact Herd support to move it to your own Workspace.

Prerequisites

  • A Herd administrator account with the Organization › Manage admins and permissions permission (org.permissions).

  • A Google Cloud project that belongs to your Google Workspace organization, and a role in it that can configure the OAuth consent screen and create credentials (Owner or Editor).

  • Your organization's email domains on record with Herd, including your Workspace's primary domain. Herd links a sign-in to a Herd account only on those domains. If the Single sign-on card warns that none are on record, ask Herd support to add them before you test.

Step 1: Create the OAuth client in Google

In Herd, open Settings → General → Access → Sign-in, choose Google Workspace and select Begin setup. Herd shows one value with a copy button: the authorized redirect URI. Keep the page open.

In the Google Cloud console, in a project that belongs to your Workspace organization:

  1. Go to APIs & Services → OAuth consent screen.

    • User type: Internal.

    • App name: Herd.

    • User support email: an address your people can reach.

  2. Go to APIs & Services → Credentials → Create credentials → OAuth client ID.

    • Application type: Web application.

    • Authorized redirect URIs: Herd's authorized redirect URI (it ends in /oauth2/idpresponse).

    • Leave Authorized JavaScript origins empty.

    • Select Create.

  3. Copy the client ID and client secret.

Decide who may sign in

Everyone in your Workspace can use an Internal app. Anyone who signs in with a Workspace account on one of your organization's email domains gets a Herd account. Each one gets the Herd app as a learner who sees only their own training, unless you've set a default group (see Who gets app access and Access). To make someone an admin, add them to Full Access in Herd. To limit who can sign in at all:

  • Restrict the OAuth client to chosen organizational units in the Google Admin console: Security → Access and data control → API controls → Manage app access, add the app by its client ID, and set its access per organizational unit.

Back in Herd, select I've created the app.

Step 2: Enter its credentials

Field
Value

Client ID

The OAuth client's client ID (it ends in .apps.googleusercontent.com).

Client secret

The OAuth client's client secret.

There is no issuer to enter: Google has one issuer for every organization (https://accounts.google.com), and Herd fills it in.

Select Save and continue. Herd checks with Google before saving anything.

Step 3: Test sign-in

Select Run test sign-in. A new tab signs you in through Google, as yourself. Herd checks that Google signed you in with your own email address, from a Google Workspace account on one of your organization's email domains, then shows the result in both tabs. Your organization's sign-in has not changed.

Because every organization shares Google's issuer, Herd reads which Workspace an account belongs to (Google's hosted-domain claim) on every sign-in, and accepts only your organization's own. A personal Google account, or an account in another organization's Workspace, is refused whatever your consent screen allows.

If the test fails:

  • Not in a Google Workspace organization: you signed in with a personal Google account. Sign in with your work account.

  • Not one of your organization's email domains: Herd accepts only your organization's own domains. If the domain is yours (your Workspace's primary domain included), ask Herd support to add it.

  • Signed in as a different person: sign out of Google in that browser, or choose your own account, then run the test again.

  • Error 403: org_internal from Google: the account is outside the Workspace the OAuth client belongs to.

Step 4: Turn on SSO

Within an hour of a passing test, select Turn on SSO. From then on:

  • Everyone in your organization signs in to Herd through Google Workspace, with the Sign in with Google button on your organization's sign-in page.

  • Sign-in security, including 2-Step Verification, is set in Google Workspace, and Herd's own MFA setting is hidden.

  • Herd accepts only Google Workspace accounts on your organization's email domains.

  • A session through Google Workspace ends 24 hours after the person last signed in through Google. Herd then sends them back through Google, which signs them straight in while their Google session lasts.

Who gets app access

Google Workspace has no step that assigns people to the Herd app. Anyone in your Workspace can sign in through an Internal OAuth client, and a sign-in with an account on one of your organization's email domains gets a Herd account. Whether that sign-in gives them the Herd app or only their own training depends on your access settings. See Who gets app access when they sign in. Usually every sign-in gets the app, as a learner who sees only their own training, or in your default group if you've set one (Settings → General → Access → Who gets the app). If that's Full Access, change the default group first, or restrict the OAuth client to chosen organizational units in the Google Admin console (Security → Access and data control → API controls → Manage app access), so that only people who should be admins get in.

The identity-provider switch isn't available for Google Workspace

Google Workspace sign-in has no role or group that Herd can read at sign-in, so the identity-provider switch on the Sign-in card is off, with Not available for Google Workspace. Everyone who signs in gets the app as a learner. Give people more from their profile or by adding them to a group. See App Access.

Keep your user list current

SSO controls who can sign in. It never removes anyone from Herd. People you suspend or delete in Google Workspace can no longer sign in, but they stay on Herd's Users list and keep receiving training until something tells Herd they left. Herd's Users page says so while nothing does.

Connect Google Workspace directory sync in Settings → Integrations → Google Workspace: Herd reads your Google Workspace users and groups and removes the people you suspend or archive in Google Workspace. See Google Workspace.

Admin accounts that sign in with a Herd password

Herd never lets an identity provider take over a Herd admin account that signs in with a Herd password just because it sends the same email address.

  • You, the administrator running the setup, get through: your test sign-in proves which Google Workspace identity is yours, and your first Google Workspace sign-in after you turn SSO on (within 7 days of turning it on) moves your account.

  • Other admins who sign in with a password: once SSO is on, their first sign-in through it is refused, and the sign-in page says why and shows Sign in with your Herd password. They sign in that way, which takes them to the Single sign-on card, and choose Connect my account to SSO. That signs them in through your identity provider once, to prove which identity is theirs; their next sign-in through SSO, within 7 days, moves their account.

Accounts that are not admins follow the usual rules above.

Changing or turning off SSO

  • Test again re-runs the test against your live configuration without changing it.

  • Reconfigure stages new values (for example a rotated client secret). They are tested before they replace the live configuration.

  • Disable SSO returns everyone to Herd passwords. You need a Herd password yourself to do this.

Last updated