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

122
Vistas
Put permissions on a sheet when create a spreadsheet with Google API

I am using Google's Spreadsheets API in NodeJS and I know how I can create a Spreadsheet with the following code

const auth = new GoogleAuth({
    keyFile: 'src/credentials.json',
    scopes: "https://www.googleapis.com/auth/spreadsheets"
})

const client = await auth.getClient()

const googleSheets = google.sheets({version:"v4", auth: client})

let resource = {
    properties: {
        title: 'Test'
    },
}

googleSheets.spreadsheets.create(
    {
        resource,
        fields: 'spreadsheetId'
    }, 
    (err, spreadsheet) =>{
        if (err) {
          console.log(err);
        } else {
          console.log(`${JSON.stringify(spreadsheet)}`);
        }
    }
)

This returns the ID of the Spreadsheet and more information, but my problem is that as much as I have searched, I have not found how to give permissions to an email to access the Spreadsheet.

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