Google Drive – Link Parameter to Hint Which Account to Access

google-drive

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=user@example.com but cannot recall where.

Best Answer

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: authuser=email@example.com 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&authuser=user@example.com