Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
“Insufficient Permission” error when trying to get labels from GMail account using application-default credentials

I’m trying to run a node.js program that retrieves the labels from my GMail account. The build instructions (so you can see what I did) and code are here : https://github.com/chrisxkeith/gcp-js-credential-test .

After reading https://cloud.google.com/docs/authentication#strategies , it seemed to me that using application-default credentials was the best (e.g., simplest and most secure) way to go.

I’ve been able to use the application-default credentials to access the Cloud Storage service (https://github.com/chrisxkeith/gcp-js-credential-test/blob/main/test_cloud_storage.js ), but when I try to use the GMail service to retrieve the list of labels (https://github.com/chrisxkeith/gcp-js-credential-test/blob/main/test_get_email_labels.js ), I get an “Insufficient Permission” error.

How can I get past this error?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!