Configuring access · Topic 1 of 7
Cloud Identity, SSO and Workforce Identity Federation
Manage Cloud Identity for Google Cloud: Directory Sync, SAML SSO, super admin protection, user lifecycle automation and Workforce Identity Federation.
- 6 min
- GCDS is one way, from AD or LDAP into Cloud Identity, and runs on your own server.
- With SAML SSO the IdP checks passwords and MFA; Google is the service provider.
- Super admins are break-glass accounts: few, dedicated, protected with security keys.
What it is
Every person who uses Google Cloud needs an identity that Google trusts. That identity is either a Google account in Cloud Identity or Google Workspace, or an identity in an external identity provider (IdP) that Google trusts through Workforce Identity Federation. The engineer decides where the source of truth lives, how accounts are created, removed and signed in, and how admin accounts are protected.
How it works
Cloud Identity and Google Workspace
Cloud Identity (Free or Premium) is the identity service behind a Google Cloud organization; Google Workspace includes the same features plus apps such as Gmail. The users and groups held here are what you grant IAM roles to. Groups are the unit of access: people join and leave groups while the IAM policy stays the same.
Google Cloud Directory Sync
Google Cloud Directory Sync (GCDS) copies users, groups and group memberships from Active Directory or another LDAP server into Cloud Identity. It runs on a server you manage inside your own network.
| Property | Behaviour |
|---|---|
| Direction | One way, from LDAP to Google; it never writes to Active Directory |
| Schedule | Runs on a schedule you set, so changes flow without manual work |
| Accounts missing from LDAP | Can be suspended or deleted in Google, as you configure |
Microsoft Entra ID and Okta can instead provision users and groups into Cloud Identity directly, with no GCDS server.
Single sign-on with a third-party IdP
With SSO, Google is the service provider and your IdP authenticates users, usually with SAML 2.0. You create an SSO profile in the Admin console and assign it to organizational units or groups.
| SSO profile setting | Purpose |
|---|---|
| Sign-in page URL | Where Google redirects users to authenticate |
| Verification certificate | Lets Google check the signature on the SAML response |
| Profile assignment | Which organizational units or groups use this IdP |
Password rules and MFA then live in the IdP. GCDS and SSO usually work together: GCDS creates accounts, SSO signs them in.
Protecting the super administrator
A Cloud Identity super admin can do anything in the account, including changing SSO and resetting other admins. A super admin can also grant itself Organization Administrator in Google Cloud, so it belongs inside your security boundary.
- Use dedicated super admin accounts that are never used for daily work.
- Keep more than one, so one lost account does not lock you out, but keep the number small.
- Enforce security keys for 2-Step Verification and keep recovery details current.
- Delegate routine work with narrower admin roles, such as Groups Admin.
- Super admins sign in to the Admin console with their Google credentials, which lets them repair a broken SSO setup.
Automating the user lifecycle
| Stage | What should happen automatically |
|---|---|
| Joiner | Sync or IdP provisioning creates the account and adds it to groups |
| Mover | Group changes in the source directory flow to Cloud Identity |
| Leaver | The account is suspended in the source and the sync suspends it in Google |
Suspend first and delete later: suspension blocks sign-in at once but keeps data for transfer.
Administering accounts programmatically
Use the Admin SDK Directory API for users, groups and organizational units, and the Cloud Identity Groups API for groups. Assign the calling service account a narrow admin role, such as Groups Admin, instead of domain-wide delegation, which lets an app act as any user.
gcloud identity groups memberships add \
--group-email=gcp-network-admins@example.com \
--member-email=ana@example.com
Workforce Identity Federation
Workforce Identity Federation lets users of an external IdP use Google Cloud without copying their accounts into Cloud Identity. You create a workforce identity pool at organization level, add an OIDC or SAML 2.0 provider, and map IdP claims to Google attributes such as google.subject and google.groups.
gcloud iam workforce-pools create partner-pool \
--organization=123456789012 --location=global \
--display-name="Partner staff"
| Grant to | Principal identifier |
|---|---|
| One user | principal://iam.googleapis.com/locations/global/workforcePools/partner-pool/subject/SUBJECT |
| An IdP group | principalSet://iam.googleapis.com/locations/global/workforcePools/partner-pool/group/GROUP_ID |
An attribute condition on the provider can reject tokens, for example from users outside an allowed group. Federated users sign in through a separate federated console, and not every product supports them, so check support before choosing it.
A worked example
A bank keeps staff in on-premises Active Directory and contractors in a partner's Okta tenant. Staff need the console, Google Workspace and every Google Cloud service.
Staff get GCDS plus a SAML SSO profile pointing to AD FS. Contractors get a workforce pool with the partner's OIDC provider, limited to one group, with roles on a single project.
How the exam asks about this
- "Synchronize on-premises Active Directory users and groups to Google Cloud without modifying Active Directory." GCDS, which is one way from LDAP to Google.
- "Users must sign in with corporate credentials, and MFA must be enforced by the existing IdP." A SAML SSO profile in Cloud Identity pointing to that IdP.
- "Give a partner's employees access to a project without creating Google accounts for them." Workforce Identity Federation with a pool and provider for the partner IdP.
What to remember for the exam
- GCDS is one way, from AD or LDAP into Cloud Identity, and runs on your own server.
- With SAML SSO the IdP checks passwords and MFA; Google is the service provider.
- Super admins are break-glass accounts: few, dedicated, protected with security keys.
- Automate joiners, movers and leavers from one source of truth; suspend before deleting.
- Workforce Identity Federation grants IAM roles to external IdP users without Google accounts.
Do not use a super admin account for daily administration or as a personal account. Delegate routine work with narrower admin roles and keep super admin for recovery.
Common mistakes
Expecting GCDS to sync both ways. GCDS only reads from LDAP and writes to Google. Changes made in Cloud Identity never reach Active Directory.
Granting roles to individual users. Access becomes impossible to review and leavers keep grants. Grant roles to groups that the directory keeps current.
Choosing Workforce Identity Federation when users also need Google Workspace. Federated workforce identities are for Google Cloud access; users who need Workspace apps need Cloud Identity or Workspace accounts.
Check yourself
Which tool copies users and groups from Active Directory into Cloud Identity, and in which direction?
Google Cloud Directory Sync, one way from Active Directory or LDAP into Cloud Identity.
In a SAML SSO setup, which side enforces password rules and MFA?
The third-party IdP, because it authenticates the user and Google only checks the signed SAML response.
What do you create to let users of an external IdP access Google Cloud without Google accounts?
A workforce identity pool with an OIDC or SAML provider, then IAM grants to its principal or principalSet identifiers.
Topic 1 of 7 in Configuring access
Test yourself on Configuring access
The full Google Cloud Professional Cloud Security Engineer question bank has 749 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by Google Cloud. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.