Stay organized with collections
Save and categorize content based on your preferences.
AuthorizationStatus
An enumeration denoting the authorization status of a script.
To call an enum, you call its parent class, name, and property. For example,
ScriptApp.AuthorizationStatus.REQUIRED.
Properties
Property
Type
Description
REQUIRED
Enum
The user needs to authorize this script to use one or more services. In most cases, the script
prompts the user for authorization the next time it runs; however, if the script is published
as an add-on that uses installable triggers, the trigger runs the
script without prompting for authorization but throws an exception if the script attempts to
call the unauthorized service.
NOT_REQUIRED
Enum
The user has granted this script all the authorization it currently requires.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["AuthorizationStatus is an enumeration used to represent the authorization level of a script."],["Scripts may require user authorization to access certain services, indicated by `ScriptApp.AuthorizationStatus.REQUIRED`."],["If a script has all necessary authorizations, its status is represented by `ScriptApp.AuthorizationStatus.NOT_REQUIRED`."],["Add-ons using installable triggers might run without explicit authorization prompts but will throw exceptions when attempting to use unauthorized services."]]],[]]