Skip to content
DocumentTaskLab

Google Drive tasks · Sharing

Add a password and expiry to a shared Google Drive link

Written November 26, 2026

It is a reasonable thing to want: a shared link that asks for a password and stops working next Friday. Google Drive does half of that job and not the other half, and pretending otherwise leaves a sensitive file protected by nothing but a forwarded link. This guide says plainly which half exists, sets up the expiry and the tightest link access Drive offers, and gives the working alternative when a password genuinely matters.

The plain truth: Drive links have no password

Google Drive's sharing dialog offers no password field, and no setting adds one. A Drive link is protected only by who can open it: people you name, your organization, or anyone who has the link. Google's own sharing documentation, sharing and managing access to files and folders in Google Drive, lists exactly those choices and no password option. So the honest version of this job is in three parts: limit who the link works for, add an expiry where your account allows it, and — when a password genuinely matters — put the password on a protected file instead of on the link.

Anyone with the link means anyone

If a link is set to "Anyone with the link", the link itself is the only key, and links get forwarded. For anything sensitive, share with named people instead — their access is tied to their Google account, which is the closest thing Drive has to a password on a link.

Restrict the link to named people

  1. Select the file in Drive and click Share. Open the sharing dialog for the file or folder.
  2. Add the specific people by email address. Enter each person and set their role — Viewer for read-only handouts, Commenter or Editor only when they truly need it.
  3. Set General access to Restricted. Under General access, choose Restricted, so the link opens the file only for the people named above. Anyone else who gets the link reaches a request-access page, not the file.
  4. Send the link. Copy link and send it. It now works only for signed-in users you named.

Add an expiry date where your account offers it

Expiration is a per-person setting, and Google notes it is available for work and school accounts; a personal account may not show it. Where it appears, it works like this:

  1. Open the Share dialog again. The people you shared with are listed with their roles.
  2. Click the arrow beside a person's name and choose Add expiration. The option sits in the menu beside that person's role.
  3. Pick a date within one year and save. Access for that person ends on that date. For folders, expiration is available for the Viewer role.
  4. Repeat per person. Each person's access has its own expiry, so a reviewer who needs a week and a colleague who needs a month can be set differently.
  5. Tell recipients the date in your message. Drive does not announce the deadline for you. One line in the email — "access ends on the 14th" — is the expiry note that makes the date mean something.

When you truly need a password: protect the file, not the link

  1. Download the file and put it in a password-protected archive. Create a ZIP or encrypted copy of the document with a password set on the archive itself, using your computer's archive tool or a dedicated encryption tool. The password then belongs to the file, wherever it travels.
  2. Upload the protected file to Drive and share that. Share the archive under Restricted access, as above. Anyone who obtains it still needs the password to open what is inside.
  3. Send the password by a different channel. Never in the same message as the link, and never in the file name. A password sent alongside the link protects nothing; sent separately — a call, a text, a different app — it is a real second key.
  4. Say plainly in your message what you have done. For example: "The link opens a password-protected file; I will text you the password separately, and your access to the file ends on the 14th." That one sentence is the honest version of a "password-protected, expiring link".

End state

When it goes wrong

Related document tasks

Sources