Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
“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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda