Associate Cloud Engineer ยท Resource hierarchy, projects and identities
Workforce Identity Federation
Letting external identities (OIDC or SAML IdPs such as Entra ID or Okta) sign in to Google Cloud without syncing accounts: workforce pools and providers, attribute mapping, and how it differs from Workload Identity Federation.
Key points
- Users of an external OIDC or SAML 2.0 IdP (e.g. Entra ID, Okta) get SSO to Google Cloud without syncing or creating accounts.
- Workforce identity pool: organization-level group of external identities; provider: trust with the IdP.
- Attribute mapping (CEL): IdP claims to Google attributes; google.subject required.
- Allow policies grant access to the pool or mapped attributes.
- Workload Identity Federation: for workloads, not people.
Source: https://docs.cloud.google.com/iam/docs/workforce-identity-federation
Practice questions
What does Workforce Identity Federation let you do?
- Let users from an external OIDC or SAML IdP sign in without syncing their accounts
- Copy an LDAP directory into Cloud Identity on a schedule
- Let CI pipelines call Google APIs without keys
- Restrict which regions resources may use
Show answer
Answer: A. Let users from an external OIDC or SAML IdP sign in without syncing their accounts
It federates people from an external IdP using SSO without synchronizing accounts into Google. It is not for machine workloads and does not copy directories.
Which statements about Workforce Identity Federation are correct?
- Workforce identity pools are configured at the organization level
- Providers can use OpenID Connect or SAML 2.0
- It requires Google Cloud Directory Sync to work
- The google.subject attribute mapping is required
- Providers support LDAP only
Show answer
Answer: A. Workforce identity pools are configured at the organization level, B. Providers can use OpenID Connect or SAML 2.0, D. The google.subject attribute mapping is required
Pools live at the organization level, providers speak OIDC or SAML 2.0, and google.subject is the required mapping. It needs no directory sync and does not use LDAP.
True or false: Workforce Identity Federation is the feature meant for CI/CD pipelines and other non-human workloads outside Google Cloud.
Show answer
Answer: False
False. That is Workload Identity Federation. Workforce Identity Federation federates human users.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
