Google multiple accounts - In URL selection by email instead of by user number
Asked Answered
I

3

8

When accessing multiple Google accounts from the browser, with multiple accounts logged in, Google will allow selecting the proper account using a number that identifies the chronologically logged in user, with the syntax:

https://<service-name>/u/<user-number>/

For instance:

https://mail.google.com/mail/u/0/#inbox
https://contacts.google.com/u/2/preview/all

I wonder if is there a way to use an URL where the user-number is replaced with the user email....

Internment answered 27/10, 2016 at 9:13 Comment(1)
See #9466564 for a similar discussion.Laniferous
I
7

This seems to work for Gmail

On Desktop: https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F%3Fauthuser%3DUSERNAME%40DOMAIN&service=mail&Email=USERNAME@DOMAIN

For mobile:

https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fmu%2Fmp%2F%3Fauthuser%3DUSERNAME%40DOMAIN&service=mail&Email=USERNAME@DOMAIN

Internment answered 6/11, 2016 at 9:10 Comment(2)
This is the only solution that is guaranteed to open Gmail for that one user. Others, like an authuser parameter or appending /b/<email> to the path, even the ServiceLogin solution documented here will fail if the user is already logged in but not in the intended account.Forb
Shorter version: https://accounts.google.com/AccountChooser?continue=YOUR_URL&[email protected]Ebullient
S
5

Use this solution https://mail.google.com/mail/u/[email protected]

Taken from this link https://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account/49168#49168

Suckle answered 16/9, 2021 at 14:5 Comment(2)
This doesn't open the correct account if you are logged into multiple ones.Ranique
@OliverDixon Have you tried other solutions from link?Suckle
B
0

For Google calendar, use:

https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fb%2FUSERNAME%40DOMAIN&Email=USERNAME@DOMAIN

Thats what I got from altering the Riccardo's URL.

Blueberry answered 6/11, 2017 at 13:20 Comment(3)
How it's related with the question?Ruvolo
Ah, the link was not proper, it was missing "&Email=USERNAME@DOMAIN" at the end of the URL. I edited the response accordingly.Blueberry
@VasylLyashkevych, it's related because Riccardo was asking about the way to use the user's email in Google services URL, instead of numbers (0, 1, ..). Riccardo then came up with the URL for Gmail, in which you replace USERNAME and DOMAIN and it works. I then presented similar URL, but for Google Calendar.Blueberry

© 2022 - 2025 — McMap. All rights reserved.