New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Google Workspace SSO Configuration

Free

Streamline authentication with SAML 2.0 SSO for Google Workspace.

Get this skill

Free · Opens the source repo

What Google Workspace SSO Configuration does

The Google Workspace SSO Configuration skill provides a structured approach to implementing Single Sign-On (SSO) for Google Workspace using SAML 2.0. This skill is designed for organizations that want to centralize user authentication through third-party identity providers (IdPs) like Okta, Azure AD, or ADFS. By leveraging SSO, organizations can enhance security, simplify user management, and ensure compliance with authentication policies.

This skill guides users through the entire SSO setup process, starting from preparing the identity provider to configuring Google Workspace as the service provider. It includes detailed workflows for configuring various IdPs, ensuring that users can authenticate seamlessly without needing separate Google passwords. The skill also emphasizes the importance of MFA and immediate access revocation, which are critical for maintaining security in today's digital landscape.

The implementation process is straightforward, with clear steps outlined for both IdP setup and Google Workspace configuration. Users will find it beneficial for deploying SSO in new environments or troubleshooting existing configurations. The skill also provides a validation checklist to help ensure that all necessary configurations are correctly implemented, reducing the risk of errors during the setup.

This skill is particularly useful for IT administrators and security professionals tasked with managing user authentication in Google Workspace. It is a valuable resource for organizations looking to improve their security posture while providing a better user experience for their employees.

When to use it

Use this skill when deploying SSO capabilities in Google Workspace or when migrating from native Google passwords to an external IdP.

When not to use it

This skill may not be suitable for environments that do not require SSO or where users are not using a compatible identity provider.

What you can build with it

Deploying SSO in a New Environment

Use this skill to set up SSO for a new Google Workspace deployment, ensuring centralized authentication from the start.

Migrating from Native Passwords

Leverage this skill to transition existing users from Google passwords to SSO with an external identity provider.

Conducting Security Assessments

Utilize this skill during security assessments to validate SSO configurations and ensure compliance with security policies.

How to install Google Workspace SSO Configuration

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/implementing-google-workspace-sso-configuration --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

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

ParameterValue
ACS URLhttps://www.google.com/a/{your-domain}/acs
Entity IDgoogle.com/a/{your-domain} or google.com
NameID Formaturn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
NameID ValueUser's primary Google Workspace email
BindingHTTP-POST (for ACS), HTTP-Redirect (for SSO URL)

Workflow

Step 1: Prepare the Identity Provider

For Okta:

  1. Navigate to Applications > Add Application > Search "Google Workspace"
  2. Configure the Google Workspace app with your domain
  3. Assign users/groups to the application
  4. Download the IdP metadata or note: SSO URL, Entity ID, Certificate

For Azure AD (Microsoft Entra ID):

  1. Navigate to Enterprise Applications > New Application > Google Cloud/Workspace
  2. Configure Single sign-on > SAML
  3. 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
  4. Download Federation Metadata XML or Certificate (Base64)

For ADFS:

  1. Add Relying Party Trust using federation metadata
  2. Configure claim rules to pass NameID as email address
  3. Export the token-signing certificate

Step 2: Configure Google Workspace SSO

  1. Sign in to Google Admin Console (admin.google.com) as Super Admin
  2. Navigate to Security > Authentication > SSO with third-party IdP
  3. Click "Add SSO profile" or configure the default profile

Third-Party SSO Profile Settings:

SettingValue
Set up SSO with third-party IdPEnabled
Sign-in page URLIdP's SAML SSO endpoint (e.g., https://idp.example.com/sso/saml)
Sign-out page URLIdP's logout URL (e.g., https://idp.example.com/slo)
Change password URLIdP's password change URL
Verification certificateUpload IdP's X.509 signing certificate
Use a domain-specific issuerEnabled (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
  1. Navigate to Security > Authentication > SSO with third-party IdP
  2. Select the SSO profile to assign
  3. Choose organizational units or groups
  4. 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

  1. Open an incognito browser window
  2. Navigate to https://mail.google.com/a/{your-domain}
  3. Verify redirect to IdP sign-in page
  4. Authenticate at the IdP
  5. Verify successful redirect back to Google Workspace
  6. Test sign-out flow redirects to IdP logout page
  7. Test with user not assigned in IdP (should fail)

Validation Checklist

  • IdP SAML application configured with correct ACS URL and Entity ID
  • IdP signing certificate uploaded to Google Admin Console
  • SSO profile assigned to target organizational units/groups
  • SAML assertion includes correct NameID (email format)
  • MFA enforced at IdP for all Google Workspace users
  • Sign-out URL configured to terminate IdP session
  • Network masks configured if internal/external access differs
  • Break-glass Super Admin accounts bypass SSO (use Google auth)
  • SSO tested with multiple user types (admin, standard, contractor)
  • SAML response signature validated successfully
  • Error handling tested (expired cert, invalid user, clock skew)

References

Frequently asked questions about Google Workspace SSO Configuration

Similar skills