Sub topic 11
Shared drives and inherited permissions
This chapter assumes you already know the Viewer, Commenter and Editor roles, how to use the Share dialog, and how general access works. It covers what changes when a spreadsheet lives in a shared drive instead of My Drive. It also explains why a person can have access to a file that does not appear in its Share dialog.
Where a spreadsheet lives changes who controls it
A spreadsheet in My Drive belongs to one person, the owner. That person (or an editor, if the owner allows it) decides who else gets in. If the owner's account is deleted, the file can be lost or orphaned.
A shared drive is a Google Drive space that belongs to a team. The files in it belong to the team, not to whoever uploaded them. A spreadsheet in a shared drive has no personal owner. If a member leaves, the file stays where it is.
This changes the access model from the earlier chapters in three ways:
- Access can come from the drive, from a folder, or from the file itself.
- There is no "transfer ownership" step for files that stay in the shared drive.
- Sharing outside the team is controlled by the drive's settings and by organization policy, not only by the person who created the file.
shared drives are available mainly in Google Workspace editions. If you have a personal Google account, you will not see them. Everything here about My Drive still applies to you.
Shared drive roles
Members of a shared drive get a role on the whole drive. These roles are different from the three file roles.
| Drive role | What it allows |
|---|---|
| Manager | Everything below, plus adding and removing members, changing drive settings, and deleting the drive |
| Content manager | Edit, add, move and delete files and folders, but not manage membership |
| Contributor | Edit and add files, but not move or delete files that others added |
| Commenter | Comment on files |
| Viewer | View files only |
Exact names and capabilities can vary by Workspace edition and admin settings. Check the Drive Help Center if a role behaves differently than shown here.
A member's drive role applies to every file in the drive. If someone is a Content manager of the drive, they can edit every spreadsheet in it, even if the spreadsheet's own Share dialog does not list them.
How permissions are inherited
Permissions in a shared drive flow downward. A file inherits the access of the folder it sits in, and a folder inherits from the drive.
The effective access of a person on a spreadsheet is the combination of every source that applies to them. In practice, the highest role wins.
For example, Priya is a Viewer on the shared drive. Someone also adds her to one spreadsheet as an Editor. She can edit that spreadsheet, and she can only view the rest. The reverse does not work. If Priya is a Content manager on the drive, adding her to a file as a Viewer does not reduce her access.
Inherited access is shown separately
When you open the Share dialog on a file in a shared drive, you see two kinds of entries. People added directly to the file appear in the main list. People who have access through the drive or folder appear under a separate section, often labeled as having access through the shared drive. Their role is shown, but you cannot lower it from the file.
This is the most common source of confusion. You open the Share dialog, remove someone, and they still have access. They have it from the drive or a folder, so the fix is there.
Limiting access on a file or folder
Sometimes you need a file that only some drive members can see. A manager can turn on the option to limit access on a folder. Once limited, only people added directly to that folder, plus managers of the drive, can open it. Other drive members lose inherited access to it.
Use this for sensitive sheets, such as payroll or performance data, that live in a drive with a wider group.
A few points to keep in mind:
- Limiting is set per folder. The files inside follow the folder.
- Managers of the drive always keep access.
- Moving a file out of a limited folder into an open one means it inherits the new, wider access.
Sharing with people outside the drive
You can still share a single spreadsheet with someone who is not a drive member. Adding them to the file gives them a role on that file only. They do not see the drive, its folders, or other files.
This is called non-member access. Whether it is allowed depends on two settings:
- The drive setting that lets members share files with people outside the drive. A manager controls it.
- The organization policy on sharing outside the domain, which an administrator controls.
If either one forbids it, the Share dialog will refuse the address or will not show the option. The next chapter covers organization policies in more detail.
Drive-level settings that affect spreadsheets
A manager can change settings that apply to every file in the drive. The ones that matter most for spreadsheets are:
- Whether people outside the drive can be added to files.
- Whether people who are not drive members can be given access to the drive itself.
- Whether viewers and commenters can download, print or copy files.
- Whether general access can be set to Anyone with the link.
These settings override the choices an individual editor makes in a file. An editor of a spreadsheet may open Share and find that Anyone with the link is missing. The drive setting is the reason.
Moving files between My Drive and a shared drive
Moving a file changes who controls it.
- From My Drive into a shared drive: the file's ownership passes to the drive. The file's direct sharing may be kept or dropped depending on the situation, and the file picks up the drive's inherited access. Check the Share dialog after a move.
- Out of a shared drive into My Drive: this requires the right drive role, and the person moving it becomes the owner. Some drives restrict it.
- Between two shared drives: the file takes on the new drive's members and settings.
Because a move can both add and remove access, review the Share dialog right after any move. Note that a move may be limited by role. Only certain roles can move files out of the drive.
Checking who has access in a shared drive
To audit a spreadsheet in a shared drive, check all three levels:
- Open the spreadsheet and select Share. Read the people with direct access and the section showing access through the drive.
- Check the folder the file is in. Look at the folder's Share dialog and whether access is limited.
- Open the shared drive's member list and read each member's role.
A person not listed in step 1 can still appear in step 2 or step 3.
Reading permissions with Apps Script
The chapter on Apps Script covers changing sharing. For inherited access, a short script can at least list the direct viewers, commenters and editors of the bound spreadsheet. Note that Apps Script's DriveApp lists people with access to the file, and its handling of shared drive access depends on the service. Treat the output as a starting point, not as a complete audit.
function listDirectAccess() {
const ss = SpreadsheetApp.getActiveSpreadsheet();
const file = DriveApp.getFileById(ss.getId());
const editors = file.getEditors().map(u => u.getEmail());
const viewers = file.getViewers().map(u => u.getEmail());
console.log('Editors: ' + editors.join(', '));
console.log('Viewers and commenters: ' + viewers.join(', '));
console.log('General access: ' + file.getSharingAccess());
}If the output differs from what you expect, compare it with the Share dialog and the drive's member list.
Common mistakes
- Removing someone from the file when their access comes from the drive or a folder. Remove or change them at the source.
- Assuming a Viewer entry on the file lowers a person's drive role. It does not. The highest role applies.
- Moving a sensitive sheet into a shared drive without checking who the members are.
- Expecting to transfer ownership of a file inside a shared drive. The drive owns it.
- Forgetting that drive settings can hide options like Anyone with the link.
Exercise
Dana is a Content manager of a shared drive. You add her to a spreadsheet in that drive as a Viewer, expecting her to lose edit access. She can still edit. Why, and what are two ways to actually limit her?
Show answer
Dana's role comes from the drive and applies to every file in it. The highest applicable role wins, so a Viewer entry on the file does not lower it. To limit her, you can lower her role on the drive (a manager changes her membership), or move the spreadsheet into a folder with limited access and add her directly to that folder as a Viewer, so she no longer inherits the drive role there.
Exercise
You remove a contractor in the Share dialog of a shared-drive spreadsheet, but they can still open it. List the places to check.
Show answer
Check whether the contractor is a member of the shared drive, whether the folder gives them inherited access or is not limited, and whether general access is set to Anyone with the link, which lets them in without being named. Remove or restrict them at whichever level grants the access.