Class PageProtection

  • The PageProtection class is deprecated and should not be used in new scripts for spreadsheets created in the newer version of Google Sheets.

  • Use the Protection class instead for newer Google Sheets for more powerful sheet protection features.

  • PageProtection provides methods to manage access and modifications to protected sheets in the older version of Google Sheets.

  • Despite being deprecated, PageProtection remains available for compatibility with older Google Sheets.

  • Key methods include adding/removing users with edit access, checking protection status, and setting protection status.

PageProtection

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.

Deprecated methods