# Enforce public access prevention on Cloud Storage

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Enforce public access prevention on Cloud Storage is a Google Cloud guardrail written in organization Policy Service. Blocks ACLs and IAM permissions that grant access to allUsers and allAuthenticatedUsers on Cloud Storage buckets and objects, for existing and future resources.

```text
constraints/storage.publicAccessPrevention
Secure your Cloud Storage data from public exposure by enforcing public access prevention. This governance policy prevents existing and future resources from being accessed via the public internet by disabling and blocking ACLs and IAM permissions that grant access to allUsers and allAuthenticatedUsers . Enforce this policy on the entire organization (recommended), specific projects, or specific folders to ensure no data is publicly exposed.
This policy overrides existing public permissions. Public access will be revoked for existing buckets and objects after this policy is enabled. For more details on the effects of changing enforcement of this constraint on resources, please see: https://docs.cloud.google.com/storage/docs/public-access-prevention.
For more information, see Organization policy constraints for Cloud Storage .
```

- **Blocks:** Blocks ACLs and IAM permissions that grant access to allUsers and allAuthenticatedUsers on Cloud Storage buckets and objects, for existing and future resources. (legacy managed constraint, boolean.)
- **Breaks:** Google documents that it overrides existing public permissions and revokes public access for existing buckets and objects once enabled. ([source](https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints))
- **Test before applying:** As for every Organization Policy Service guardrail: [how to test before enforcing](/mechanisms/org-policy/)
- **Mechanism:** [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/): 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](https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints), provider documentation

## What the source says

"Secure your Cloud Storage data from public exposure by enforcing public access prevention." (read 10 Nov 2026).

On what it breaks: "This policy overrides existing public permissions. Public access will be revoked for existing buckets and objects after this policy is enabled."

## Related guardrails

- [Deny disabling block public access for AMIs](/guardrails/aws-scp-deny-disable-ami-block-public-access/): AWS, Service control policies (SCPs), public exposure
- [Require IAM authentication on Lambda function URLs](/guardrails/aws-scp-require-lambda-url-iam-auth/): AWS, Service control policies (SCPs), public exposure
- [Deny changes to S3 Block Public Access at bucket level](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/): AWS, Resource control policies (RCPs), public exposure
- [Restrict public IP access on Cloud SQL instances](/guardrails/gcp-orgpolicy-sql-restrict-public-ip/): Google Cloud, Organization Policy Service (managed and legacy constraints), public exposure
- [Define allowed external IPs for VM instances](/guardrails/gcp-orgpolicy-vm-external-ip-access/): Google Cloud, Organization Policy Service (managed and legacy constraints), public exposure

## Related pages

- [Restrict public IP access on Cloud SQL instances (Google Cloud Organization Policy Service)](/guardrails/gcp-orgpolicy-sql-restrict-public-ip/)
- [Define allowed external IPs for VM instances (Google Cloud Organization Policy Service)](/guardrails/gcp-orgpolicy-vm-external-ip-access/)
- [Skip default network creation (Google Cloud Organization Policy Service)](/guardrails/gcp-orgpolicy-skip-default-network/)

## Sources

- Enforce public access prevention on Cloud Storage: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints (read 10 Nov 2026)
- How to test it first: https://cloud.google.com/resource-manager/docs/organization-policy/dry-run-policy (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/gcp-orgpolicy-storage-public-access-prevention/
