Enum AuthorizationStatus

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

PropertyTypeDescription
REQUIREDEnumThe user needs to authorize this script to use one or more services. In most cases, the scriptprompts the user for authorization the next time it runs; however, if the script is publishedas anadd-on that usesinstallable triggers, the trigger runs thescript without prompting for authorization but throws an exception if the script attempts tocall the unauthorized service.
NOT_REQUIREDEnumThe user has granted this script all the authorization it currently requires.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.