iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎉

How to switch Google Workspace accounts using unique URLs

に公開

This article explains how to switch accounts in Google Workspace (e.g., Gmail).
In Google Workspace, multiple accounts are identified by a number at the end of the URL.
For example, in the following URL: https://mail.google.com/mail/u/0/, the number 0 indicates the account. By changing this number (e.g., 1, 2, 3...), you can switch between multiple accounts.
However, when logging in from different devices or browsers, the same URL might point to different accounts (because the login order differs).
While this isn't an issue with few accounts, it becomes difficult to manage which number points to which account when using multiple accounts.

Method

The following is a way to uniquely specify an account.
Add the authuser option to the end of the URL to specify the account you want to use.
Original: https://mail.google.com/mail/u/0/ - the account corresponding to number 0 is set.
→: https://mail.google.com/mail/u/?authuser=example@example.com - the account example@example.com is set.

It is possible to switch accounts using the same method for services other than Gmail.

References

https://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account

Discussion