O
O
Oleg2020-02-20 21:31:30
Google Apps Script
Oleg, 2020-02-20 21:31:30

How to fix error when using onEdit, give permissions?

Good afternoon.
Please suggest how to fix the error.

Through onEdit I want to create an event in the calendar (without creating an event in the calendar, onEdit, it works). But in the Stackdriver magazine, he writes:

The script does not have permission to perform this action. Required Permissions: ( https://www.googleapis.com/auth/calendar || https://www.googleapis.com/auth/calendar.readonly || https://www.google.com/calendar/feeds) .


As far as I understand, through appsscript.json , you need to set permissions. But the error still remains (I attach the screenshot).

Tell me please, how to give the required rights?

5e4ed006dff2b592710666.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2020-02-21
@Oleg_F

Triggers are divided into simple (Simple) and installed (Installable).
Simple triggers often simply don't have access to some permissions. Set the trigger manually. Everything should be fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question