Developer's Google API Script Failed Due to Wrong Account Behind OAuth Token
A developer automating Google Search Console data retrieval into a Python script encountered repeated 403 permission errors despite owning the property. The root cause turned out to be two nearly identical Google accounts signed into the same browser, differing by just one character in their email addresses. During the OAuth consent flow, the wrong account was selected on autopilot, causing the API to return an empty property list and a permissions denial. Switching to the correct account — identified via Blogger's account switcher — resolved the 403 immediately. The developer noted that Google's 403 error gives no indication of whether the issue is a missing scope, role, or simply the wrong account identity behind the token.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in