orgRestrictionViolation constant

ErrorReason const orgRestrictionViolation

The request is denied because it violates Org Restriction: the requested resource does not belong to allowed organizations specified in "X-Goog-Allowed-Resources" header.

Example of an ErrorInfo when accessing a GCP resource that is restricted by Org Restriction for "pubsub.googleapis.com" service.

{ reason: "ORG_RESTRICTION_VIOLATION" domain: "googleapis.com" metadata { "consumer":"projects/123456" "service": "pubsub.googleapis.com" } }

Implementation

static const orgRestrictionViolation = ErrorReason(
  'ORG_RESTRICTION_VIOLATION',
);