# Guardrail denial (AccessDenied)

Run the [common pre-checks](/wiki/runbooks/#common-pre-checks) first.

## Symptoms
An `AccessDenied` error in a pipeline log or a CLI session, with an explicit deny from a service control policy, a resource control policy or a permissions boundary.

## Pre-checks
1. The error message names the policy type ("explicit deny in a service control policy"). Find the statement in the [policy catalog](/wiki/policies/): its Sid carries the control ID.
2. Decide whether the call should have worked. Most denials are the guardrail doing its job.

## Resolution
- **The call shouldn't happen:** change the caller, not the policy.
- **The call is legitimate:** a policy change is a decision. Record it, change the policy template in a PR, and run its change set like any other org policy change (the org policy alert fires, as expected).

## Post-checks
The legitimate call succeeds, and the control tests' negative tests for that control still pass.

## Rollback
Revert the policy PR and run the change set again.