TryingToLearn
TryingToLearn

Reputation: 511

Apps Script Installable Trigger Not Firing

Description

My previously functioning Google Apps Scripts that had time-based triggers installed on them have stopped working as of Feb 7, 2024. The only error I get in the daily emailed logs is:

Authorization is required to perform that action.

When I run the script manually it functions as intended.

Even setting up a simple function such as in the code section below, and setting a time-based trigger to run every minute, doesn't work. There are no logs that are found in the Apps Script project, seemingly the script never runs, but I do continue to receive emails stating:

Authorization is required to perform that action.

Code

function myFunction() {
  console.log('Testing...')
}

Has something changed with respect to the time-based triggers? Am I missing a new required authorization to run time-based triggers?

Upvotes: 0

Views: 168

Answers (1)

TryingToLearn
TryingToLearn

Reputation: 511

The issue that caused this was related to Google Workspace's Context-Aware Access. We had a location-based rule, and all of the Apps Script files were not listing a location, so they were failing the rule and being blocked. Each Apps Script file had to be whitelisted in the API Controls of Google Workspace's Admin. Doing so allowed the installable trigger to work properly again.

Upvotes: 0

Related Questions