V
V
Vladimir Merk2016-06-21 19:02:02
Google
Vladimir Merk, 2016-06-21 19:02:02

How to work in google script with google spreadsheets protected sheets?

Hello.
Is it possible to somehow edit from protected google spreadsheets from google script if the script is run from a user who does not have editing rights?
Actually the purpose - the control of filling of the table. Those. it is necessary that when the user fills the table, the data is copied to a second table protected from him, which he cannot edit directly.
I wrote the script itself, it works, but only if the user has rights to edit the second table.
Maybe you can somehow temporarily remove the lock with a script? Or some other ways?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2016-08-01
@VladimirMerk

You need two scripts:

  1. Destination server (runs as the owner of the protected range)
  2. Initiator program (runs on behalf of the user)

You will need to solve several problems:
  • Determining the authenticity of the initiating program on the server
  • Command execution control
  • Coordinated development and support of the two programs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question