Sub topic 5
Controlling what editors and viewers can do
This chapter assumes you can already share a sheet with named people and know the three roles (Viewer, Commenter, Editor). It covers the two sharing settings that change what those roles can do. It also explains what the settings do not prevent.
Two settings, two audiences
By default, a role has more power than its name suggests.
- An Editor can add people, change other people's roles, and turn on link sharing.
- A Viewer or Commenter can download, print and copy the sheet.
Google Sheets has one setting for each of these defaults. Both are in the Share dialog. Click Share, then click the gear icon (Settings) at the top of the dialog.
| Setting | Who it applies to | Default | When you turn it off |
|---|---|---|---|
| Editors can change permissions and share | Editors | On | Only the owner can change sharing |
| Viewers and commenters can see the option to download, print, and copy | Viewers and commenters | On | Those options are hidden for viewers and commenters |
The settings belong to the file. They are not stored per person, and you cannot turn them off for one editor and leave them on for another.
Stopping editors from changing sharing
Turn off Editors can change permissions and share when you want editors to work on content but not decide who else gets access. After you turn it off:
- Editors can no longer add people or change anyone's role.
- Editors can no longer change general access, so they cannot create or widen a link.
- The owner can still do all of this.
Check one case before you rely on the setting. Anyone who already has the link keeps whatever access that link grants. Turning the setting off stops future changes. It does not undo earlier ones. If an editor already switched general access to "Anyone with the link", that stays until you change it back.
On a shared drive, sharing rights come from the drive's membership roles as well, so this file-level setting may not be the whole picture. The shared drives chapter covers that.
Limiting download, print and copy
Turn off Viewers and commenters can see the option to download, print, and copy to remove these from the interface for people who are not editors:
- File > Download
- File > Print
- File > Make a copy
This also affects a copy link. Replacing /edit with /copy in the URL asks the recipient to make a copy. If copying is disabled for viewers, they should not be able to make one that way. Test with a second account rather than assuming.
A common wrong assumption is that this makes the data safe from viewers. It does not. The setting is a deterrent, and it has clear limits:
- Editors are not affected. An editor can always download and copy the sheet.
- Viewers can still read everything they can open. They can select cells and copy text with the keyboard, take screenshots, or retype values.
- Earlier copies stay. A copy someone made before you turned the setting off is theirs.
- It does not change who can open the sheet. Roles and general access still decide that.
For confidential data, the correct control is not to share the sheet at all. Share a separate sheet that contains only what the recipient should see. The view-only copy chapter covers that approach.
Choosing a combination
Pick the settings that match how the sheet is used.
| Situation | Editors can share | Viewers can download/print/copy |
|---|---|---|
| Team working document, small trusted group | On | On |
| Shared budget where only you decide who joins | Off | On |
| Report for clients who should read but not export | Off | Off |
| Public reference sheet for anyone with the link | Off | On (or Off if you do not want easy copies) |
The first row keeps the defaults. In the other rows, turning off editor sharing is the more important change. It keeps the audience from growing without your knowledge. Turning off download and copy mainly adds friction for casual users.
Applying the settings with Apps Script
The editor sharing setting has a direct Apps Script method on DriveApp. This script must run as the file's owner or as someone allowed to change the setting.
function lockDownEditorSharing() {
const ss = SpreadsheetApp.getActiveSpreadsheet();
const file = DriveApp.getFileById(ss.getId());
// Same as unchecking "Editors can change permissions and share".
file.setShareableByEditors(false);
Logger.log('Editors can share: %s', file.isShareableByEditors());
}isShareableByEditors() reads the setting back, so you can check the result in the log. The download, print and copy setting has no DriveApp method. It is exposed in the Drive API v3 as the copyRequiresWriterPermission field on the file. If you need to set it in a script, enable the Drive advanced service and update that field. For a single sheet, the dialog is faster.
Common errors
- Setting the option and expecting a hard block. The download setting hides interface options. It cannot stop screenshots or manual copying.
- Testing as the owner. The owner and editors see every option. Open the sheet in a private window signed in as a viewer to see what viewers see.
- Forgetting existing links. Turning off editor sharing does not remove access that was already granted.
- Expecting per-person control. If one editor needs to manage sharing, make that person the owner (see the ownership chapter) or ask the owner to make the change.
- Forgetting that Commenters are included. Disabling download, print and copy also applies to commenters, not only viewers.
Check the result
A quick test confirms both settings.
- Share the sheet with a second account as Editor, and with a third as Viewer.
- Turn off both settings.
- Sign in as the editor. Open Share and confirm you cannot add people or change roles.
- Sign in as the viewer. Open the File menu and confirm that Download, Print and Make a copy are unavailable.
- Sign in as the editor again and confirm that Download still works.
The last step shows that the download setting does not apply to editors.
Exercise
You share a sheet with a client as Viewer and with a colleague as Editor. You turn off both settings in the Share dialog gear menu. Name one thing the client can still do, one thing the colleague can no longer do, and one thing the colleague can still do that the client cannot.
Show answer
The client can still read all the data, and could take screenshots or retype values. The colleague can no longer add people or change roles, because editors can no longer change permissions and share. The colleague can still edit cells and can still use File > Download, because the download restriction applies only to viewers and commenters.
Exercise
A teammate says that turning off "Viewers and commenters can see the option to download, print, and copy" makes the sheet safe for confidential payroll data shared with viewers. Give two reasons this is wrong and say what you would do instead.
Show answer
Viewers can still read everything they can open, so they can screenshot or copy values by hand, and anyone who already made a copy keeps it. The setting also does not affect editors. Instead, share a separate sheet that contains only the data the recipient should see, or do not share the payroll sheet at all, and keep general access Restricted.