SSO with Google Workspace

Google Workspace can hand sign-in to a third-party SAML identity provider. With Trowyn, your users sign in to Gmail, Drive and every "Sign in with Google" app by approving on their phone.

Google's reference: Set up SSO for your organization.

1. Prepare users

Link each user's phone in Trowyn with their primary Google Workspace email as the external_user_id. Google matches the SAML NameID to that address.

2. Create the SSO profile in Google

  1. In the Google Admin console, go to Security → Authentication → SSO with third party IdP and choose Add SAML profile (third-party SSO profile).
  2. Fill in: - IDP entity ID: your Trowyn issuer (from the console's SSO page) - Sign-in page URL: the Trowyn SAML SSO URL (…/saml) - Sign-out page URL: https://trowyn.com/ - Verification certificate: upload certificate.pem from the Trowyn console - Leave Use a domain specific issuer off unless you know you need it.
  3. Save. Google then shows the SP details: an Entity ID and an ACS URL.

3. Register Google in Trowyn

In the console, SSO → Add app → SAML:

Field Value
Entity ID Google's SP Entity ID (for example https://accounts.google.com/samlrp/…)
ACS URL Google's ACS URL (for example https://accounts.google.com/samlrp/acs?rpid=…)
NameID format emailAddress

The default mapping (NameID = {user}) is what Google expects.

4. Turn it on for some users

In SSO with third party IdP → Manage SSO profile assignments, assign the Trowyn profile to a test organizational unit or group first. Sign in as a test user in a private window: Google sends you to trowyn.com/signin, you approve on the phone and land in Gmail.

Notes