tl;dr: I'm running a script via a time-based trigger, but Apps Script is throwing the "Authorization is required to perform that action." error every week. I suspect it's because of new OAuth "test user" requirements but am not sure.
I'm currently invoking a Google Apps Script via a time-based trigger. A while back I created a Google Cloud Platform (GCP) project for this script as well as a few others it works in conjunction with.
Because I'm running in the context of a personal Google account, the GCP project is not part of an organization. This teams that the required OAuth consent screen is set to "external", in which GCP states "Your app will start in testing mode and will only be available to users you add to the list of test users." My account is listed as a test user.
I'm observing that my time-based trigger fails with the "Authorization is required to perform that action." error every week. This is a dealbreaker for this script, which must run on its own for long periods of time.
I haven't seen this behavior in the past and am guessing that these OAuth settings requiring test users are new and are not affecting my older GCP projects (which run find).
Any ideas would be greatly appreciated.