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.
When to Use
- When deploying or configuring implementing google workspace sso configuration capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
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) |
Workflow
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: Apache-2.010metadata:11 source: https://skillmd.com/skills/micsapp/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.192021## When to Use2223- When deploying or configuring implementing google workspace sso configuration capabilities in your environment24- When establishing security controls aligned to compliance requirements25- When building or improving security architecture for this domain26- When conducting security assessments that require this implementation2728## Prerequisites2930- Google Workspace Business, Enterprise, or Education edition31- Super Admin access to Google Admin Console32- Identity Provider with SAML 2.0 support (Okta, Azure AD, ADFS, Ping Identity)33- IdP signing certificate (X.509 PEM format, RSA or DSA)34- DNS verification for the Google Workspace domain3536## Core Concepts3738### SAML 2.0 SSO Flow3940```41User navigates to Google Workspace app (Gmail, Drive, etc.)42 │43 ├── Google checks: Is SSO configured for this domain?44 │45 ├── YES → Redirect user to IdP Sign-In Page URL46 │ (SAML AuthnRequest sent via browser redirect)47 │48 ├── User authenticates at IdP (credentials + MFA)49 │50 ├── IdP generates SAML Response with signed assertion51 │52 ├── Browser POSTs SAML Response to Google ACS URL:53 │ https://www.google.com/a/{domain}/acs54 │55 ├── Google validates SAML signature against uploaded certificate56 │57 └── User is granted access to Google Workspace58```5960### Key SAML Parameters6162| Parameter | Value |63|-----------|-------|64| ACS URL | `https://www.google.com/a/{your-domain}/acs` |65| Entity ID | `google.com/a/{your-domain}` or `google.com` |66| NameID Format | `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress` |67| NameID Value | User's primary Google Workspace email |68| Binding | HTTP-POST (for ACS), HTTP-Redirect (for SSO URL) |6970## Workflow7172### Step 1: Prepare the Identity Provider7374**For Okta:**751. Navigate to Applications > Add Application > Search "Google Workspace"762. Configure the Google Workspace app with your domain773. Assign users/groups to the application784. Download the IdP metadata or note: SSO URL, Entity ID, Certificate7980**For Azure AD (Microsoft Entra ID):**811. Navigate to Enterprise Applications > New Application > Google Cloud/Workspace822. Configure Single sign-on > SAML833. Set Basic SAML Configuration:84 - Identifier (Entity ID): `google.com`85 - Reply URL (ACS): `https://www.google.com/a/{your-domain}/acs`86 - Sign on URL: `https://www.google.com/a/{your-domain}/ServiceLogin`874. Download Federation Metadata XML or Certificate (Base64)8889**For ADFS:**901. Add Relying Party Trust using federation metadata912. Configure claim rules to pass NameID as email address923. Export the token-signing certificate9394### Step 2: Configure Google Workspace SSO95961. Sign in to Google Admin Console (admin.google.com) as Super Admin972. Navigate to Security > Authentication > SSO with third-party IdP983. Click "Add SSO profile" or configure the default profile99100**Third-Party SSO Profile Settings:**101102| Setting | Value |103|---------|-------|104| Set up SSO with third-party IdP | Enabled |105| Sign-in page URL | IdP's SAML SSO endpoint (e.g., `https://idp.example.com/sso/saml`) |106| Sign-out page URL | IdP's logout URL (e.g., `https://idp.example.com/slo`) |107| Change password URL | IdP's password change URL |108| Verification certificate | Upload IdP's X.509 signing certificate |109| Use a domain-specific issuer | Enabled (uses `google.com/a/{domain}` as entity ID) |110111### Step 3: Assign SSO Profile to Users112113SSO profiles can be applied at different scopes:114115```116Organization-wide (all users)117 │118 ├── Org Unit level (specific departments)119 │ ├── Engineering OU → SSO via Okta120 │ ├── Marketing OU → SSO via Azure AD121 │ └── Contractors OU → SSO via specific IdP122 │123 └── Group level (specific security groups)124 └── VPN Users → SSO with additional MFA125```1261271. Navigate to Security > Authentication > SSO with third-party IdP1282. Select the SSO profile to assign1293. Choose organizational units or groups1304. Save and wait for propagation (up to 24 hours, typically minutes)131132### Step 4: Configure Network Masks (Optional)133134Network masks control when SSO is enforced based on the user's IP:135136- If the user's IP matches a network mask, they use Google's sign-in page137- If the user's IP does NOT match, they are redirected to the IdP138139This is useful for allowing direct Google login from corporate network while enforcing SSO for external access.140141### Step 5: Test SSO1421431. Open an incognito browser window1442. Navigate to `https://mail.google.com/a/{your-domain}`1453. Verify redirect to IdP sign-in page1464. Authenticate at the IdP1475. Verify successful redirect back to Google Workspace1486. Test sign-out flow redirects to IdP logout page1497. Test with user not assigned in IdP (should fail)150151## Validation Checklist152153- [ ] IdP SAML application configured with correct ACS URL and Entity ID154- [ ] IdP signing certificate uploaded to Google Admin Console155- [ ] SSO profile assigned to target organizational units/groups156- [ ] SAML assertion includes correct NameID (email format)157- [ ] MFA enforced at IdP for all Google Workspace users158- [ ] Sign-out URL configured to terminate IdP session159- [ ] Network masks configured if internal/external access differs160- [ ] Break-glass Super Admin accounts bypass SSO (use Google auth)161- [ ] SSO tested with multiple user types (admin, standard, contractor)162- [ ] SAML response signature validated successfully163- [ ] Error handling tested (expired cert, invalid user, clock skew)164165## References166167- [Google Workspace SSO Configuration Guide](https://support.google.com/a/answer/12032922)168- [Set Up Custom SAML App - Google](https://support.google.com/a/answer/6087519)169- [Okta Google Workspace SAML Guide](https://saml-doc.okta.com/SAML_Docs/How-to-Enable-SAML-2.0-in-Google-Apps.html)170- [SAML 2.0 Technical Overview - OASIS](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html)