3

Is it possible to construct a link to a Google Drive file and specify the email account to access the file as? I know that it is possible to use /u/1 or /u/2 in the path, but I am looking at generating a link to send to users who own multiple Google accounts, and I want to make it easy for them to access the file with the account which has read/write access, as opposed to accessing with an account which has readonly access.

I think I have seen something like https://drive.google.com/open?id=123882182828&[email protected] but cannot recall where.

1 Answer 1

4

The authuser parameter can take both the number which is used in the /u/ part of the path, or an email address. So, appending this query parameter: [email protected] will make google drive use this account, if it is in the list of signed in accounts.

E.g., https://drive.google.com/open?id=123882182828&[email protected]

5
  • As far as I can tell, the authuser parameter doesn't work anymore. Please tell me if I'm mistaken; I would love to be mistaken.
    – Merchako
    Commented Aug 31, 2022 at 15:49
  • @Merchako still works, I tried it just now and it seems you can also add it also works if you append it to a docs.google.com/document/d/8383838383838388338?authuser=... url.
    – chutz
    Commented Sep 1, 2022 at 16:20
  • The example you gave is for Google Docs. Could you confirm that is also works for Google Drive, @chutz?
    – Merchako
    Commented Sep 1, 2022 at 18:29
  • Yes @Merchako both work. Again, this only works if you are already logged in with that account. Here are a few links you can try for yourself. docs.google.com/document/d/… drive.google.com/…
    – chutz
    Commented Sep 2, 2022 at 13:55
  • Thank you, @chutz. For some reason, I've been getting unpredictable behavior for searches when using the forms https://drive.google.com/drive/[email protected]&q={query} and https://drive.google.com/drive/u/[email protected]/search?q={query}. I suspect this is a problem with my browser preserving my logins rather than the URLs.
    – Merchako
    Commented Sep 4, 2022 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.