Implementing Google Workspace SSO Configuration
Overview
Single Sign-On (SSO) for Google Workspace allows organizations to authenticate users through their existing identity provider (IdP) such as Okta, Azure AD (Microsoft Entra ID), or ADFS, rather than managing separate Google passwords. This is implemented using SAML 2.0 protocol where Google Workspace acts as the Service Provider (SP) and the organization's IdP handles authentication. SSO centralizes credential management, enforces MFA policies at the IdP, and enables immediate access revocation when users leave the organization.
Prerequisites
- Google Workspace Business, Enterprise, or Education edition
- Super Admin access to Google Admin Console
- Identity Provider with SAML 2.0 support (Okta, Azure AD, ADFS, Ping Identity)
- IdP signing certificate (X.509 PEM format, RSA or DSA)
- DNS verification for the Google Workspace domain
Core Concepts
SAML 2.0 SSO Flow
User navigates to Google Workspace app (Gmail, Drive, etc.)
│
├── Google checks: Is SSO configured for this domain?
│
├── YES → Redirect user to IdP Sign-In Page URL
│ (SAML AuthnRequest sent via browser redirect)
│
├── User authenticates at IdP (credentials + MFA)
│
├── IdP generates SAML Response with signed assertion
│
├── Browser POSTs SAML Response to Google ACS URL:
│ https://www.google.com/a/{domain}/acs
│
├── Google validates SAML signature against uploaded certificate
│
└── User is granted access to Google Workspace
Key SAML Parameters
| Parameter |
Value |
| ACS URL |
https://www.google.com/a/{your-domain}/acs |
| Entity ID |
google.com/a/{your-domain} or google.com |
| NameID Format |
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress |
| NameID Value |
User's primary Google Workspace email |
| Binding |
HTTP-POST (for ACS), HTTP-Redirect (for SSO URL) |
Implementation Steps
Step 1: Prepare the Identity Provider
For Okta:
- Navigate to Applications > Add Application > Search "Google Workspace"
- Configure the Google Workspace app with your domain
- Assign users/groups to the application
- Download the IdP metadata or note: SSO URL, Entity ID, Certificate
For Azure AD (Microsoft Entra ID):
- Navigate to Enterprise Applications > New Application > Google Cloud/Workspace
- Configure Single sign-on > SAML
- Set Basic SAML Configuration:
- Identifier (Entity ID):
google.com
- Reply URL (ACS):
https://www.google.com/a/{your-domain}/acs
- Sign on URL:
https://www.google.com/a/{your-domain}/ServiceLogin
- Download Federation Metadata XML or Certificate (Base64)
For ADFS:
- Add Relying Party Trust using federation metadata
- Configure claim rules to pass NameID as email address
- Export the token-signing certificate
Step 2: Configure Google Workspace SSO
- Sign in to Google Admin Console (admin.google.com) as Super Admin
- Navigate to Security > Authentication > SSO with third-party IdP
- Click "Add SSO profile" or configure the default profile
Third-Party SSO Profile Settings:
| Setting |
Value |
| Set up SSO with third-party IdP |
Enabled |
| Sign-in page URL |
IdP's SAML SSO endpoint (e.g., https://idp.example.com/sso/saml) |
| Sign-out page URL |
IdP's logout URL (e.g., https://idp.example.com/slo) |
| Change password URL |
IdP's password change URL |
| Verification certificate |
Upload IdP's X.509 signing certificate |
| Use a domain-specific issuer |
Enabled (uses google.com/a/{domain} as entity ID) |
Step 3: Assign SSO Profile to Users
SSO profiles can be applied at different scopes:
Organization-wide (all users)
│
├── Org Unit level (specific departments)
│ ├── Engineering OU → SSO via Okta
│ ├── Marketing OU → SSO via Azure AD
│ └── Contractors OU → SSO via specific IdP
│
└── Group level (specific security groups)
└── VPN Users → SSO with additional MFA
- Navigate to Security > Authentication > SSO with third-party IdP
- Select the SSO profile to assign
- Choose organizational units or groups
- Save and wait for propagation (up to 24 hours, typically minutes)
Step 4: Configure Network Masks (Optional)
Network masks control when SSO is enforced based on the user's IP:
- If the user's IP matches a network mask, they use Google's sign-in page
- If the user's IP does NOT match, they are redirected to the IdP
This is useful for allowing direct Google login from corporate network while enforcing SSO for external access.
Step 5: Test SSO
- Open an incognito browser window
- Navigate to
https://mail.google.com/a/{your-domain}
- Verify redirect to IdP sign-in page
- Authenticate at the IdP
- Verify successful redirect back to Google Workspace
- Test sign-out flow redirects to IdP logout page
- Test with user not assigned in IdP (should fail)
Validation Checklist
References
1---2name: implementing-google-workspace-sso-configuration3description: Configure SAML 2.0 single sign-on for Google Workspace with a third-party identity provider, enabling centralized authentication and enforcing organization-wide access policies.4domain: cybersecurity5subdomain: identity-access-management6tags: [google-workspace, sso, saml, identity-provider, authentication, federation]7version: "1.0"8author: mahipal9license: MIT10metadata:11 source: https://skillmd.com/skills/njones17/implementing-google-workspace-sso-configuration12---1314# Implementing Google Workspace SSO Configuration1516## Overview1718Single Sign-On (SSO) for Google Workspace allows organizations to authenticate users through their existing identity provider (IdP) such as Okta, Azure AD (Microsoft Entra ID), or ADFS, rather than managing separate Google passwords. This is implemented using SAML 2.0 protocol where Google Workspace acts as the Service Provider (SP) and the organization's IdP handles authentication. SSO centralizes credential management, enforces MFA policies at the IdP, and enables immediate access revocation when users leave the organization.1920## Prerequisites2122- Google Workspace Business, Enterprise, or Education edition23- Super Admin access to Google Admin Console24- Identity Provider with SAML 2.0 support (Okta, Azure AD, ADFS, Ping Identity)25- IdP signing certificate (X.509 PEM format, RSA or DSA)26- DNS verification for the Google Workspace domain2728## Core Concepts2930### SAML 2.0 SSO Flow3132```33User navigates to Google Workspace app (Gmail, Drive, etc.)34 │35 ├── Google checks: Is SSO configured for this domain?36 │37 ├── YES → Redirect user to IdP Sign-In Page URL38 │ (SAML AuthnRequest sent via browser redirect)39 │40 ├── User authenticates at IdP (credentials + MFA)41 │42 ├── IdP generates SAML Response with signed assertion43 │44 ├── Browser POSTs SAML Response to Google ACS URL:45 │ https://www.google.com/a/{domain}/acs46 │47 ├── Google validates SAML signature against uploaded certificate48 │49 └── User is granted access to Google Workspace50```5152### Key SAML Parameters5354| Parameter | Value |55|-----------|-------|56| ACS URL | `https://www.google.com/a/{your-domain}/acs` |57| Entity ID | `google.com/a/{your-domain}` or `google.com` |58| NameID Format | `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress` |59| NameID Value | User's primary Google Workspace email |60| Binding | HTTP-POST (for ACS), HTTP-Redirect (for SSO URL) |6162## Implementation Steps6364### Step 1: Prepare the Identity Provider6566**For Okta:**671. Navigate to Applications > Add Application > Search "Google Workspace"682. Configure the Google Workspace app with your domain693. Assign users/groups to the application704. Download the IdP metadata or note: SSO URL, Entity ID, Certificate7172**For Azure AD (Microsoft Entra ID):**731. Navigate to Enterprise Applications > New Application > Google Cloud/Workspace742. Configure Single sign-on > SAML753. Set Basic SAML Configuration:76 - Identifier (Entity ID): `google.com`77 - Reply URL (ACS): `https://www.google.com/a/{your-domain}/acs`78 - Sign on URL: `https://www.google.com/a/{your-domain}/ServiceLogin`794. Download Federation Metadata XML or Certificate (Base64)8081**For ADFS:**821. Add Relying Party Trust using federation metadata832. Configure claim rules to pass NameID as email address843. Export the token-signing certificate8586### Step 2: Configure Google Workspace SSO87881. Sign in to Google Admin Console (admin.google.com) as Super Admin892. Navigate to Security > Authentication > SSO with third-party IdP903. Click "Add SSO profile" or configure the default profile9192**Third-Party SSO Profile Settings:**9394| Setting | Value |95|---------|-------|96| Set up SSO with third-party IdP | Enabled |97| Sign-in page URL | IdP's SAML SSO endpoint (e.g., `https://idp.example.com/sso/saml`) |98| Sign-out page URL | IdP's logout URL (e.g., `https://idp.example.com/slo`) |99| Change password URL | IdP's password change URL |100| Verification certificate | Upload IdP's X.509 signing certificate |101| Use a domain-specific issuer | Enabled (uses `google.com/a/{domain}` as entity ID) |102103### Step 3: Assign SSO Profile to Users104105SSO profiles can be applied at different scopes:106107```108Organization-wide (all users)109 │110 ├── Org Unit level (specific departments)111 │ ├── Engineering OU → SSO via Okta112 │ ├── Marketing OU → SSO via Azure AD113 │ └── Contractors OU → SSO via specific IdP114 │115 └── Group level (specific security groups)116 └── VPN Users → SSO with additional MFA117```1181191. Navigate to Security > Authentication > SSO with third-party IdP1202. Select the SSO profile to assign1213. Choose organizational units or groups1224. Save and wait for propagation (up to 24 hours, typically minutes)123124### Step 4: Configure Network Masks (Optional)125126Network masks control when SSO is enforced based on the user's IP:127128- If the user's IP matches a network mask, they use Google's sign-in page129- If the user's IP does NOT match, they are redirected to the IdP130131This is useful for allowing direct Google login from corporate network while enforcing SSO for external access.132133### Step 5: Test SSO1341351. Open an incognito browser window1362. Navigate to `https://mail.google.com/a/{your-domain}`1373. Verify redirect to IdP sign-in page1384. Authenticate at the IdP1395. Verify successful redirect back to Google Workspace1406. Test sign-out flow redirects to IdP logout page1417. Test with user not assigned in IdP (should fail)142143## Validation Checklist144145- [ ] IdP SAML application configured with correct ACS URL and Entity ID146- [ ] IdP signing certificate uploaded to Google Admin Console147- [ ] SSO profile assigned to target organizational units/groups148- [ ] SAML assertion includes correct NameID (email format)149- [ ] MFA enforced at IdP for all Google Workspace users150- [ ] Sign-out URL configured to terminate IdP session151- [ ] Network masks configured if internal/external access differs152- [ ] Break-glass Super Admin accounts bypass SSO (use Google auth)153- [ ] SSO tested with multiple user types (admin, standard, contractor)154- [ ] SAML response signature validated successfully155- [ ] Error handling tested (expired cert, invalid user, clock skew)156157## References158159- [Google Workspace SSO Configuration Guide](https://support.google.com/a/answer/12032922)160- [Set Up Custom SAML App - Google](https://support.google.com/a/answer/6087519)161- [Okta Google Workspace SAML Guide](https://saml-doc.okta.com/SAML_Docs/How-to-Enable-SAML-2.0-in-Google-Apps.html)162- [SAML 2.0 Technical Overview - OASIS](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html)