Enum DeveloperMetadataVisibility
Stay organized with collections
Save and categorize content based on your preferences.
DeveloperMetadataVisibility
An enumeration of the types of developer metadata visibility.
To call an enum, you call its parent class, name, and property. For example,
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
.
Properties
Property | Type | Description |
DOCUMENT | Enum | Document-visible metadata is accessible from any developer project with access to the document. |
PROJECT | Enum | Project-visible metadata is only visible to and accessible by the developer project that
created the metadata. Do not use project-visible developer metadata as a security mechanism or
to store secrets. It can be exposed to users with view access to the document. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[],["Developer metadata visibility is categorized into two types: `DOCUMENT` and `PROJECT`. `DOCUMENT`-visible metadata can be accessed by any developer project with document access. `PROJECT`-visible metadata is restricted to the creating project. Project metadata should not be used for security or storing secrets, as it can be exposed to users with view access to the document. The way to use these properties is by referencing `SpreadsheetApp.DeveloperMetadataVisibility`.\n"],null,[]]