Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

196
Visualizações
“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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda