Configure SAML 2.0 single sign-on between TrueFoundry and Google Workspace using a custom SAML app.
This guide walks you through setting up SAML 2.0 single sign-on between TrueFoundry and Google Workspace. Once finished, members of your Workspace can sign in to TrueFoundry through a Login with Google button.
This guide configures SAML SSO via Google Workspace for an entire organisation. It is not the same as “Sign in with Google”, which uses OAuth 2.0 / OIDC and authenticates individual Google consumer accounts. Confirm with your security team that you actually want SAML before continuing.
Sign in to admin.google.com as a Super Admin.In the left sidebar, expand Apps and click Web and mobile apps.
2
Add a custom SAML app
Click Add app → Add custom SAML app.On the App details screen, enter an App name (for example TrueFoundry). Optionally upload an app icon, then click Continue.
3
Continue past Google Identity Provider details
On the Google Identity Provider details screen, click Continue without copying anything yet — you’ll paste the SSO URL and certificate into TrueFoundry in Step 5.
On the Attributes step, add mappings for the claims TrueFoundry expects:
1
Add email and sub
Under Attributes, click Add mapping for each row:
Google directory attribute
App attribute
Primary email
email
Primary email
sub
Google does not expose an Azure-style objectId in the custom SAML wizard. Mapping Primary email to both email and sub is the most common pattern. If your organisation populates Employee ID for every user, you can map that field to sub instead for a more stable identifier.
2
Finish the wizard
Click Finish. Google lands you on the new app’s overview page — the SAML app exists but is OFF for everyone by default.
Step 5 — Paste Google’s IdP details into TrueFoundry
1
Open Google Identity Provider details
From the app’s overview page, click Download metadata or open the SAML app setup flow again and navigate to Google Identity Provider details. Copy the SSO URL and click Download under Certificate to save the .pem file.
2
Paste into TrueFoundry
Return to Settings → Security & Access → SSO in TrueFoundry and edit the SSO configuration you created in Step 1. Set:
Identity Provider Endpoint → Google’s SSO URL.
X.509 Certificate → the full contents of the downloaded .pem file, including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.
Newly-created custom SAML apps are turned OFF for the entire Workspace. You must explicitly enable the app for the users who should be able to sign in.
1
Open User access
From the new app’s overview page, click the User access card on the right (it shows as OFF for everyone).
2
Turn the service ON
Either:
Choose ON for everyone and click Save, or
Select an organisational unit or group on the left and toggle Service status to ON for just that subset.
Google can take up to 24 hours to propagate the ON / OFF change. Until propagation finishes, affected users will see app_not_configured_for_user when they try to sign in. This is a Google-side delay — there is nothing to fix in TrueFoundry.
Open a private/incognito window and visit your TrueFoundry login page.
Click Login with Google (or whichever Button Text you chose under Show advanced fields).
Authenticate with a Google Workspace user that the app is enabled for.
If the sign-in succeeds you’ll land in the TrueFoundry dashboard. New users are created automatically if JIT provisioning is enabled; otherwise the user must already exist in TrueFoundry or be invited.
Use OIDC instead — if you don’t need SAML, the OAuth 2.0 flow against Google is simpler. Configure a Google Cloud OAuth client and switch Authentication Configuration to OIDC in TrueFoundry.
'Invalid Signature' or 'Could not validate SAML response'
The certificate pasted into TrueFoundry doesn’t match the active signing certificate on Google’s app. Re-download the .pem from the Google Identity Provider details screen of your custom SAML app and paste the entire contents — including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines — into TrueFoundry’s X.509 Certificate field.
Users see 'app_not_configured_for_user' after clicking Login with Google
The Google org unit they belong to isn’t enabled for the SAML app yet, or Google hasn’t finished propagating the change. Confirm under Apps → Web and mobile apps → <your app> → User access that the OU is ON, then wait up to 24 hours for propagation.
Sign-in works but the user's email or unique ID is empty
The email and sub attribute mappings weren’t saved. Edit the SAML app in Google, open Attribute mapping, and confirm Primary email maps to both email and sub (or Employee ID → sub if you use that pattern).
'SAML Response is not signed' or 'Signature required'
Google signs SAML assertions by default but does not sign the SAML response envelope unless asked to. If your security policy requires a signed response, edit the SAML app in Google, return to Service Provider Details, and check Signed response. Then re-test.