Sub topic 1
How access to a spreadsheet works
Prerequisites
This chapter assumes the following:
- You have a Google account and can create and open a Google Sheet.
- You are comfortable with the Sheets interface: menus, tabs, and cell ranges such as
A1:C10. - You have seen the blue Share button at the top right of a spreadsheet, even if you have never used it.
You do not need to know any JavaScript for this chapter. Later chapters use Apps Script, and they say so when they do.
The working model: three layers decide who gets in
Every Google Sheet is a file stored in Google Drive. Access to that file is not one switch. It is the result of several layers, and a person gets in if any permitted layer reaches them. Keeping the layers separate in your head explains most sharing surprises.
- The owner. Every file has one owner, usually the person who created it. The owner can always open the file, change who else can, and delete it.
- Named people (and groups). The owner, or an editor who is allowed to, adds specific email addresses. Each address gets a role. This is the layer you control in the Share dialog.
- General access. A single setting for the whole file. It is either Restricted, which means only the people you named can open it, or Anyone with the link, which means anyone who has the URL can open it with the role you pick.
A fourth layer sits above these. If the file lives in a shared drive, or if your organization's administrator has set sharing rules, those can add people automatically or block some of your choices. Later chapters cover them. For now, remember that the choices you see in the dialog may be narrower than the ones in this chapter.
Roles: what a permission level means
A role is the level of power attached to a person or to a link. Sheets has three sharing roles. A fourth, Owner, belongs to exactly one account.
| Role | Can view | Can comment | Can edit cells | Can change sharing (by default) |
|---|---|---|---|---|
| Viewer | Yes | No | No | No |
| Commenter | Yes | Yes | No | No |
| Editor | Yes | Yes | Yes | Yes |
| Owner | Yes | Yes | Yes | Yes, and can transfer ownership |
Two details in that table are worth slowing down for.
- Editors can share by default. An editor can add more people, and can give them Editor access. The owner can turn this off in the sharing settings, and a later chapter shows how.
- Viewers can still copy data out. By default a viewer can download, print, or make a copy of the file. A role limits what someone can do in your file. It does not stop them from taking a copy of what they can see.
Who is "a person"?
The Share dialog accepts several kinds of identity.
- A Google account. This is the usual case, either a personal address such as
[email protected]or a Workspace address such as[email protected]. - A Google Group. Adding one group address gives the role to every member. When membership changes, access changes with it. This is easier to maintain than a long list of individuals.
- A non-Google email address. Google can invite some people who do not have a Google account. They verify by a one-time code instead of signing in. Whether this is allowed depends on your organization.
Because access is tied to an identity, being signed in matters. A person who has been shared on [email protected] but opens the link while signed in as [email protected] sees a "You need access" page. This is the most common reason a correctly shared file seems broken.
How the layers combine
The layers add together. They do not cancel each other out, with one exception: organization rules can remove options. The practical results follow.
- If you are named as a Viewer and the link is set to Editor, you can edit. A person receives the most powerful role that any layer gives them.
- Setting general access back to Restricted removes link-based access. It does not remove anyone named in the Share dialog.
- Removing a named person does not lock them out if the link is still open to anyone. They are simply treated as a link holder.
That last point is a frequent error. If you revoke someone and they can still open the file, check general access before assuming the removal failed.
What the owner sees versus what others see
The Share dialog shows different things to different people.
- The owner sees every named person, every role, and the general access setting.
- An editor sees the same list if sharing by editors is allowed. If the owner has turned that off, editors cannot change it.
- A viewer or commenter can usually see who the owner is, but cannot change anything.
The file's Version history (File, then Version history) is separate from the permission model. It records who edited what. It does not change who can open the file.
Checking the current state
You can read the current permissions without changing anything. This is a good habit before you change a file that others depend on.
- Open the spreadsheet and select Share.
- Read the list under People with access. Note each role.
- Read the General access line below it. Note whether it says Restricted or Anyone with the link, and which role applies.
- Open the same file in a private browser window, signed out. If you see the sheet, the link is open to anyone.
Step 4 is the most reliable test of the link layer, because your own account would otherwise always pass the owner check.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| "You need access" for someone you shared with | They are signed in with a different account | Ask them to switch account, or share to the address they use |
| Someone still opens the file after you removed them | General access is Anyone with the link | Change general access to Restricted |
| A viewer made a copy of your data | Viewers may download and copy by default | Restrict download, print and copy in the sharing settings |
| An editor shared the file with outsiders | Editors may change permissions by default | Turn off editor sharing |
| The option you want is missing from the dialog | A shared drive or organization rule limits it | Ask your administrator |
Summary of the model
- A spreadsheet is a Drive file with one owner.
- Access comes from named identities with roles, plus one general access setting.
- The highest role that applies to a person wins.
- Organization and shared drive rules sit on top and can narrow what you may choose.
Exercise
You shared a sheet with [email protected] as Viewer. General access is set to Anyone with the link, role Editor. Ana opens the file while signed in as [email protected]. What can she do, and why? Then you set general access to Restricted. What can she do now?
Show answer
Before the change she can edit, because she receives the most powerful role that any layer gives her: the link's Editor role outranks her named Viewer role. After you set general access to Restricted, only the named layer remains, so she is a Viewer and can read but not edit.
Exercise
You removed a contractor from the Share dialog, but they can still open the spreadsheet. Name the first setting you check and one way to confirm your finding without asking the contractor.
Show answer
Check General access. If it says Anyone with the link, the contractor can still open the file through the URL. To confirm, open the link in a private, signed-out browser window. If the sheet loads, the link is open. Setting general access to Restricted closes it.