Skip to content
Cloud Governance Tools

Domain restricted sharing

Domain restricted sharing is a Google Cloud guardrail written in organization Policy Service. Limits which organization principal sets and Google Workspace customer IDs can be added to IAM policies, so roles cannot be granted to outside identities. No documented way to test it before enforcement was found on 10 Nov 2026.

More data exfiltration guardrails ยท About Organization Policy Service

name: organizations/ORGANIZATION_ID/policies/iam.allowedPolicyMemberDomains
spec:
 rules:
 - condition: # This condition applies to the values block.
    expression: "resource.matchTag('ORGANIZATION_ID/environment', 'dev')"
   values:
    allowedValues:
    - PRINCIPAL_SET
 - values:
    allowedValues:
    - PRINCIPAL_SET
Blocks
Limits which organization principal sets and Google Workspace customer IDs can be added to IAM policies, so roles cannot be granted to outside identities. (legacy managed constraint, list.)
Breaks
Google documents that the organization principal set and Google Workspace ID are not automatically allowed, so they must be listed to let your own principals be granted roles. (source)
Test before applying
As for every Organization Policy Service guardrail: how to test before enforcing
Mechanism
Organization Policy Service (managed and legacy constraints): Resources in the organization, folder or project where the policy is set and its descendants; Google says application of new policies is usually not retroactive.
Taken from
provider documentation, provider documentation

What the source says

"Domain-restricted sharing lets you limit resource sharing based on a domain or organization resource." (read 10 Nov 2026).

On what it breaks: "Your organization principal set and Google Workspace ID are not automatically allowed."

Sources

  1. Domain restricted sharing, read 10 Nov 2026
  2. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.