Google Apps Script API
    Preparing search index...

    Deprecated. For spreadsheets created in the newer version of Google Sheets, use the more powerful Protection class instead. Although this class is deprecated, it remains available for compatibility with the older version of Sheets. Access and modify protected sheets in the older version of Google Sheets.

    interface PageProtection {
        addUser(email: string): void;
        getUsers(): string[];
        isProtected(): boolean;
        removeUser(user: string): void;
        setProtected(protection: boolean): void;
    }
    Index

    Methods