Request is prohibited by organization's policy — VPC Service Controls perimeter violation

A VPC Service Controls perimeter blocked the API call because the caller is outside the perimeter or not covered by an access level.

Exact message you may see Request is prohibited by organization's policyVPC Service Controls: Request is prohibited by organization's policy. vpcServiceControlsUniqueIdentifier
Seen on: Google Cloud

Meaning

Look at the audit log's VPC_SERVICE_CONTROLS violation (unique id), then add an ingress/egress rule or access level for the caller (service account, IP range), or run the call from inside the perimeter. Use dry-run mode first.

Common causes

  • Caller outside the perimeter
  • Missing ingress/egress rule
  • Cross-project resource not in the perimeter
  • Console/CLI access from a non-allowed network
  • Service not allowed in the restricted API list

⚡ Quick fix

  1. Find the violation in Logs Explorer (protoPayload.metadata.violationReason)
  2. Add an ingress/egress rule or access level
  3. Test with dry-run before enforcing

Detailed fix by platform

Shell

  1. gcloud logging read 'protoPayload.metadata."@type"="type.googleapis.com/google.cloud.audit.VpcServiceControlAuditMetadata"' --limit=5

How to diagnose

  1. Violation ID — Found?
  2. Caller — Inside perimeter?
  3. Rule — Needed?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

15281 — SQL Server Msg 15281: SQL Server blocked access to procedure 'sys.xp_cmdshell' (component 'xp_cmdshell' turned off) (SQL)15281AADSTS50053 — AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity (Azure)AADSTS50053App Check — Firebase App Check: requests rejected (403 / app-check-token-is-invalid / attestation failed) (Google Cloud / Firebase)App CheckCloud Armor — Cloud Armor returns 403 Forbidden: request blocked by a security policy rule (Google Cloud / Firebase)Cloud Armorinvalid algorithm — JWT error: invalid algorithm / The specified alg value is not allowed / jwt signature is required (Authentication)invalid algorithminvalid csrf token — ForbiddenError: invalid csrf token (EBADCSRFTOKEN) (Authentication)invalid csrf tokenNO_PUBKEY — The following signatures couldn't be verified because the public key is not available: NO_PUBKEY (Linux)NO_PUBKEYOrganization policy constraint violated — Google Cloud: Constraint constraints/compute.vmExternalIpAccess violated for project — Request violates constraint 'constraints/...' (Google Cloud / Firebase)Organization policy c…VPC-SC

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.