G
G
Gamlex872020-07-16 10:31:48
Google Apps Script
Gamlex87, 2020-07-16 10:31:48

How to allow a script to run under a different user?

I am writing a script for google sheets for a specific table. For some functions to work, it is necessary that the users under which this script will run allow its execution, for this, I run the script under the user, a window appears something like “Allow work”, where, after a few clicks, the execution of the script under this account is confirmed ( the account agrees with all risks and allows the script to work).

Question: how to make this permission not directly, through the launch of a macro, but somehow more friendly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Noir, 2020-07-16
@PolarBearGG

through onOpen create a menu in the plate and people at the first start will give the go-ahead to run the script, press the button in the menu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question