Google Cloud Directory Sync (GCDS) connects on-premises Active Directory to Cloud Identity, automatically creating and updating user accounts, groups, and organizational units in the cloud. GCDS handles account lifecycle management, but it does not synchronize passwords to Google Cloud—authentication is instead handled by redirecting users back to the external identity provider through SAML federation. This design keeps password controls, MFA, and on-premises access policies centralized and authoritative.
Setting up synchronization requires three core prerequisites: an Active Directory domain user with read access to retrieve directory schema, a dedicated Cloud Identity administrator account placed in a separate organizational unit for managing API updates, and a secured configuration directory restricted to local administrators and the LocalService account. Exempting administrative provisioning accounts from SSO prevents lockout if the identity provider experiences an outage.
Identity provisioning depends on precise attribute mapping and filtering rules. Administrators map the User Principal Name (UPN) or primary email address to Google usernames to link identities across systems. Security groups are provisioned to control IAM role assignments at scale, and all relevant DNS domains must be registered and verified in Cloud Identity before synchronization begins. User assignment rules can limit provisioning to specific pilot groups or departments.
Single sign-on is implemented using SAML 2.0 with external providers such as AD FS or Microsoft Entra ID. Google functions as the Service Provider (SP) and redirects users to the external Identity Provider (IdP) for credential verification. Configuration requires the Assertion Consumer Service (ACS) URL, the Entity ID, and valid token-signing certificates. Deploying federation servers in redundant configurations prevents single points of failure from blocking access to the cloud console.
Troubleshooting begins by examining Cloud Audit Logs and GCDS sync logs to identify whether failures stem from provisioning problems, attribute mapping errors, or authentication loops. The Test SSO setup link in a private or incognito window helps verify successful configuration—if the login screen doesn't appear, the third-party identity provider settings are likely incorrect.
Common SSO failures include certificate expiration, incorrect entity IDs, and mismatched attribute claims. When a signing certificate expires, all SAML assertions become invalid and users cannot authenticate. Administrators must check certificate validity dates and rotate them before expiration. Incorrect entity IDs occur when the SP entity ID doesn't match what's configured in the IdP, causing authentication requests to be rejected. Mismatched attribute claims happen when attributes sent by the IdP don't align with Google Cloud expectations, such as missing required fields like first_name, last_name, user_email, or groups.
When migrating identity providers, administrators must update the IdP group mapping before changing the SSO configuration. Skipping this step results in an HTTP 403 error because the system still references groups from the old identity provider that no longer exist. The group mapping must be updated under Settings > SOAR settings > Advanced > IDP group mapping to reference groups in the new identity provider first.
GCDS synchronization issues often stem from improper service account configuration. The service account needs appropriate administrative privileges, including super admin status for full synchronization capabilities. The GCDS configuration folder must be secured with proper ACLs to protect the OAuth refresh token. If synchronization doesn't start within five minutes, administrators can force it by toggling provisioning off and on, or use the Test Connection feature to verify credentials.
Workforce Identity Federation troubleshooting involves verifying attribute mappings and ensuring the google.subject attribute is correctly mapped to uniquely identify users. The "command not found" error when creating workforce providers typically occurs because the metadata XML file path is incorrect. Administrators should check for permission errors when running gcloud projects add-iam-policy-binding commands and ensure they have required IAM roles. Audit logging for the Security Token Service API helps verify successful sign-ins and correct attribute mapping before issues impact end users.
Single Sign-On (SSO) allows users to access multiple Google Cloud services with credentials from an external identity provider by configuring Cloud Identity or Google Workspace as a Service Provider (SP). The trust relationship with the third-party IdP uses SAML 2.0 or OpenID Connect (OIDC), centralizing authentication and simplifying user management while improving security.
Implementing SSO requires exchanging critical metadata to establish trust. For SAML, the IdP is configured to send specific user attributes like a unique identifier (NameID) to Google Cloud. For OIDC, Google Cloud is registered as a client application with the IdP to obtain client IDs and secrets. The assertion consumer service URL, issuer URL, and signing certificates must all be correctly configured—this trust foundation is essential for the SSO integration to function.
Just-in-Time (JIT) user provisioning automatically creates user accounts in Cloud Identity when a user authenticates via the third-party IdP for the first time, eliminating manual account synchronization. Administrators can also enforce security policies including step-up authentication, which requires additional verification for sensitive actions, and session management controls such as session timeouts and post-logout redirect definitions.
Identity synchronization parameters require planning which user attributes are passed from the IdP and how they map to Google Cloud user profiles. Troubleshooting involves verifying metadata URLs, checking certificate validity, and ensuring attribute mappings align correctly. A robust SSO setup strengthens security by leveraging centralized authentication and policy enforcement from the enterprise identity provider while providing a seamless user experience.
Professional Cloud Security Engineer
Gauge your current knowledge
Gauge your current knowledge