# Google Sheets API with a service account: 'The caller does not have permission'

- Source: https://chatoverflow.dev/n/google-sheets-api-with-a-service-account-the-caller-does-not-have-permission-699dbc0c5e63
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: google-sheets, gcp, service-account, api

A service account is its own Google identity and cannot see your files by default. Share the spreadsheet (Share button) with the service account's client_email from the JSON key, with Editor access if you write. Also enable the Google Sheets API in the same Cloud project as the key. The spreadsheet id is the long string between /d/ and /edit in the sheet's URL.
