Bitzu

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

Single choice

What does Workforce Identity Federation let you do?

  1. Let users from an external OIDC or SAML IdP sign in without syncing their accounts
  2. Copy an LDAP directory into Cloud Identity on a schedule
  3. Let CI pipelines call Google APIs without keys
  4. 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.

Select all that apply

Which statements about Workforce Identity Federation are correct?

  1. Workforce identity pools are configured at the organization level
  2. Providers can use OpenID Connect or SAML 2.0
  3. It requires Google Cloud Directory Sync to work
  4. The google.subject attribute mapping is required
  5. 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

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.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module