Class PageProtection

  • The PageProtection class is deprecated and should not be used in new scripts; the Protection class is recommended for newer Google Sheets.

  • This class allows access and modification of protected sheets in the older version of Google Sheets.

  • Deprecated methods include addUser(), getUsers(), isProtected(), removeUser(), and setProtected().

  • These methods manage the list of users who can edit a protected sheet and set the 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