Domain restricted sharing
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
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."
Related guardrails
- Deny AWS RAM sharing with external accountsAWS, Service control policies (SCPs), data exfiltration
- Block public sharing of EBS snapshots (declarative policy)AWS, Declarative policies, data exfiltration
- Storage SAS tokens should adhere to 7 day maximum validityAzure, Azure Policy (built-in definitions), data exfiltration
- Service perimeter around managed servicesGoogle Cloud, VPC Service Controls (service perimeters), data exfiltration
- Allowed destinations for exporting resourcesGoogle Cloud, Organization Policy Service (managed and legacy constraints), data exfiltration
- Custom constraint limiting IAM role grants to organization membersGoogle Cloud, Custom organization policy constraints, data exfiltration
Related pages
Sources
- Domain restricted sharing, read 10 Nov 2026
- How to test it first, read 10 Nov 2026
Last reviewed 16 Nov 2026.