Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8641977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:39:53+00:00 2026-06-12T11:39:53+00:00

I am trying to create a time-based trigger from a Google Apps Script published

  • 0

I am trying to create a time-based trigger from a Google Apps Script published as a WebApp.

Update: this WebApp shall be run as the user accessing it, not as the Apps Script owner.

Whenver I even try to access the ScriptApp services, I get an error in the frontend:

Authorization is required to perform that action.

Sample code to reproduce this would be:

function doGet(request) {
  ScriptApp.newTrigger('test');
  return ContentService.createTextOutput("OK");
};

function test() {
  // noop
}

Is this something that is not possible? Is it possible to somehow automatically add a trigger that runs a method based on time with the user giving the authorization?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:39:54+00:00Added an answer on June 12, 2026 at 11:39 am

    Under what credentials is your web app run ? As the user running the app or as yourself.
    From the error, it looks like it is run under the author’s credentials.
    In this case, you should authorize the application explicitly before you can distribute the URL. To do so, open the script editor and choose any function and try to run the function using the little ‘play’ button in the script editor. You’ll be asked to provide permissions after which you can use the Ui App

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a run time css-based swf which DOES NOT have embedded
I am trying to create a loop function based on the time. After the
I wrote a simple script trying to programmatically create a script from the onEdit
I'm trying to create a countdown timer that's based on a time on the
I am trying to create a Trigger that will run through some IF ELSEIF
I'm trying to create a function that calculates a delivery time based on today's
ok so im trying to create something where certain elements change based on time
I'm trying to create a new div each time a text field contained in
I am having a hard time trying to create and populate on the fly
So I am trying to create a unique permalink each time that a person

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.