---
title: "Diagnose a denied Google Cloud service account token request | Proofline"
description: "When GenerateAccessToken fails, check the principal requesting the token and the permission iam.serviceAccounts.getAccessToken on the target service account."
url: https://proofline.sh/learn/google-cloud-service-account-token-denied/
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 denied Google Cloud service account token request

When GenerateAccessToken fails, check the principal requesting the token and the permission iam.serviceAccounts.getAccessToken on the target service account. Downstream resource access is evaluated later using the impersonated identity.

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

In a fictional export system, `runner` requests a token for `publisher`. The audit evidence shows a denial on the IAM Credentials call. An IAM reader can inspect the publisher service account's policy, including any inherited grant where applicable, and compare the effective permission for the runner. Use Policy Troubleshooter where it supports the caller. Neither check requires printing an access token. [Service account impersonation](https://docs.cloud.google.com/iam/docs/service-account-impersonation) · [GenerateAccessToken authorization](https://docs.cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateAccessToken) · [Policy Troubleshooter](https://docs.cloud.google.com/policy-intelligence/docs/troubleshoot-access)

Take an approved impersonation request to the account owner. Evaluate a grant on the intended service account and review the extra capabilities of any predefined role proposed for it. A Storage role on the publisher cannot authorize the runner to mint its token.

[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 who needs actAs when attaching a Google Cloud service account](/learn/google-cloud-actas-service-account-denied/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
