PromptReports

Set up PromptReports ID in Google Workspace

Connect Google Workspace to PromptReports ID once, and your people sign in to every family product with their Workspace account. The ID checks on every sign-in that the account belongs to your Workspace, so a personal Gmail account or an account from another company is refused.

For a Google Workspace admin with access to your Google Cloud console, working with an owner or admin of your PromptReports organization. Every change on the SSO page is written to the organization's signed ledger.

PartState
Sign-in from Google Workspace over OpenID ConnectBuilt, off until ID_GOOGLE_WORKSPACE is on
Require SSO and joining on first sign-inBuilt

A Google Workspace connection can be saved only once PromptReports has switched it on for the ID. Until then the SSO page shows no Google Workspace steps and refuses a connection with Google's issuer.

1. Verify your domain

Open your organization's SSO page at https://accounts.promptreports.ai/orgs/<org id>/sso. Add your email domain and publish the TXT record it shows, _promptreports-id.<domain>, with the value promptreports-id=<token>, then press Check now. A domain sends sign-ins to Google only after it passes. The ID checks again every 7 days and stops after three failed checks in a row.

Google names your Workspace's primary domain in each sign-in, so verify the primary domain even when your people use a secondary domain for email. Verify each email domain they sign in with, too.

2. Make an OAuth client in Google Cloud

  1. In the Google Cloud console, pick or create a project that belongs to your Workspace organization.
  2. On the OAuth consent screen, set the user type to Internal, so only accounts in your Workspace can use the client.
  3. Under Credentials, create an OAuth client ID of type Web application, and copy its client id and secret.
  4. On your organization's SSO page, enter the issuer https://accounts.google.com with the client id and secret, and save.
  5. Copy the redirect URI the SSO page shows after that first save into the client's Authorized redirect URIs in Google Cloud.

Use OpenID Connect for Google Workspace, not a Google SAML app: the hosted domain check below reads Google's ID token, which a SAML sign-in does not carry.

3. What the ID checks on each sign-in

Any Google account can finish a Google sign-in, so the ID checks three things itself, on its server, from the ID token Google signs. The email must be at one of your verified domains, as for every connection. Google must mark the email verified. And the token's hd claim, the person's Workspace domain, must be one of your verified domains.

A personal Gmail account has no hd and is refused. An account from another company's Workspace names that company's domain and is refused. Each refusal is in the organization's ledger as id.sign_in_failed, with the reason hd_missing, hd_not_verified or email_not_verified. These checks run on every sign-in through a Google Workspace connection, even if PromptReports later switches Google Workspace off.

4. Add and remove people

Google Workspace does not send SCIM to an app you add yourself, so people join as approvers the first time they sign in. An owner or admin changes roles on the organization page, https://accounts.promptreports.ai/orgs/<org id>. Suspending a person in Google stops their next sign-in. To end their membership, remove them on the organization page, and the ID tells each family site they signed into (see PromptReports ID for admins). The ID does not read Google groups.

5. Require SSO

With Require SSO on, email links, the ID's own Sign in with Google button and passkeys are refused for addresses at your verified domains, and the person goes to your Google Workspace connection. Owners keep passkey sign-in, so a broken connection cannot lock the organization out, and each such sign-in is in the ledger.