---
title: "Diagnose a forbidden Kubernetes auth can-i impersonation check | Proofline"
description: "When kubectl auth can-i --as is itself forbidden, read which action the error names."
url: https://proofline.sh/learn/kubernetes-can-i-impersonation-forbidden/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Diagnose a forbidden Kubernetes auth can-i impersonation check

When kubectl auth can-i --as is itself forbidden, read which action the error names. The server may have denied the operator permission to impersonate the subject before it evaluated the subject's requested action.

Permission errors The Proofline team November 24, 2026 1 min read

Suppose an operator investigating fictional `system:serviceaccount:jobs:report-reader` receives an error saying the operator cannot impersonate the service account. That response gives no decision about the report reader's ability to get ConfigMaps. Inspect the original workload's audit record, or have an authorized maintainer run a self-check from the workload's existing approved credential context. An operator already permitted to impersonate can run a scoped check that preserves relevant identity attributes. [Kubernetes user impersonation](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#user-impersonation) · [kubectl auth can-i](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth/kubectl_auth_can-i/)

Send the original denial and the failed diagnostic as separate events. Impersonation is a privileged capability. A single unanswered diagnostic does not itself justify granting it.

[Trace another denied request](/learn/permission-denied-request-triage/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Find the subject of a forbidden Kubernetes API request in audit logs](/learn/kubernetes-audit-forbidden-user/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
