12

I have two Google accounts, my main one which is used for Drive (formerly Docs), Calendar and also a lot of 3rd party apps via the 'login with Google' feature.

The other Google account I use for my email on Gmail (although the account is under a custom domain running on Google Apps for Business).

The problem I'm having is that although I can have multiple accounts signed in a browser when you move between products it tends to stick in the same account. So if I'm using account-A for Drive, and I switch to Gmail, it stays in account-A (even though account-A doesn't have Gmail set up).

I then have to change to account-B in the top right corner. Is there a way to specify a default account for different products?

In other words,

  • use account-A for Drive and Calendars

  • use account-B for Gmail

4
  • 2
    Not really, no. What I've done is to have two different browsers (Chrome and Firefox) logged in to different accounts (business vs. personal) and work that way. (You could probably do the same with one browser and the use of incognito mode/private browsing.)
    – ale
    Sep 20, 2013 at 14:33
  • If you click the down arrow on the top left next to your "picture" you'll see an option "add account". Will this do what you want? (I've never used it) Sep 21, 2013 at 11:07
  • I swap between several google accounts at work and have to say that Google's multiple account implementation is terrible. I constantly get stuck in switch user/logout loops that don't end until I log in using the previously logged in account and log out again. Especially in Drive. The best solution I've found is to use separate web browsers for separate google accounts and completely avoid the issue. Jan 31, 2017 at 18:36
  • There's got to be a chrome extension that does this somewhere. Maybe search for cookie manager chrome extension or session manager.
    – Alex Cory
    Mar 7, 2017 at 21:54

5 Answers 5

10

A trick I use is to define a bookmark in my bookmarks bar for each of my various Google services. From my experience, Google services enumerate the user account in the URL, so https://mail.google.com/mail/u/0/#inbox will take you to account 0's inbox, https://mail.google.com/mail/u/1/#inbox to account 1's and so on. The trick is that you have to sign into your Google accounts in a consistent order as 0 is the account that you first signed into, 1 is the second, etc.

For example, I use:

Sometimes it gets out of sync if my login sessions expire, but in that case, I can just log out of all accounts and re-login in the correct order.

2

Google multiple sign-in feature only have one default account. The alternatives are, among others, for each account

  • use different web browsers
  • use a web browser that supports multiple profiles
  • use different OS users profiles
  • use different devices

References
Sign in to multiple accounts at once - Google Accounts Help
Use multiple sign-in with Google Docs - Google Accounts Help

2

There is a solution that uses Google Chrome Extensions and some Coding Skills.

  1. Go to chrome://extensions/.

  2. On the top right corner, enable Developer Mode.

  3. Create (in your computer) a directory with two files included:

manifest.json

  {
    "name": "Redirect when meets",
    "version": "1.0",
    "description": "Redirect to another account on meet load.",
    "manifest_version": 2,
    "content_scripts": [{
       "matches": ["*://meet.google.com/*"],
       "js": ["contentScript.js"]
    }]
 }

contentScript.js

if(!window.location.href.includes("authuser")){
  window.location.href = window.location.href + "?authuser=1"
}

Basically what this Script does is that it matches when you visit a website that contains *://meet.google.com/* (See patterns), and includes the second file script.

In the second script, it verifies if a user is specified (URL includes 'authuser', in other google services you may match /u/), otherwise, it redirects to the URL for your desired default user. (Mine is 1).

  1. With the files created, return to chrome://extensions, click on Load Unpacked and select the directory to the files.
1
  • Thanks @Enrico. I tried your suggestion. Unfortunately, the tab falls in a loop and keeps "re-loading", I imagine because the extension gets triggered indefinitely. I'm particularly trying it with classroom.google.com. Would you have any further suggestions as to how I might adjust the script? Thanks! Dec 7, 2020 at 18:23
1

I had exactly the same problem (specify different default Google Accounts for different Google Products). And as a programmer, I solved it for myself and released it publicly. You can find the extension that does exactly that here - https://default.wtf/ (yes, it's a bit of self-promotion 🙂, sorry for that).

The extension is completely free, no ads, no analytics, zero tracking, zero data collected (you can check the source code).

With the extension, you can:

  1. Select the default account for all Google Products.

  2. Customize default accounts for each Google Product Separately.

  3. Quickly switch between Google Accounts using the hotkey "Option (Alt) + {num}" (the shortcut is customizable).

Would love you hear your feedback/thoughts. And hope you find it useful.

3
  • This looks like a great extension! Thanks for writing it. Can you make it optional to switch to a different profile? You said "you can check the source code", but I can't find it. Where is the source code? Could you put it on GitHub? Jul 6, 2021 at 17:12
  • @DevenT.Corzine sorry for the late reply. Yes, sure, the source code is available here - github.com/uptechteam/default.wtf
    – Andrii Bas
    Nov 7, 2021 at 9:57
  • Great, thanks for the URL! Dec 16, 2021 at 4:19
0

While this doesn't solve your exact issue, the following procedure solves the related problem where you want to use a different default account for YouTube specifically:

  1. Log into e.g. Gmail using account A. This will be your default account everywhere except YouTube. Close the window/tab.

  2. Log into Gmail using account B (click on your profile badge and select "Add Account" in the dropdown). This will be your default account on YouTube.

  3. Go to YouTube and click "Sign in". This will sign you in with account A. Close the window/tab.

  4. From Gmail, using account B, select YouTube in the App selector (the nine squares symbol in the upper right corner). YouTube should open and show a box that allows you to select which account to use. Select B.

Your Answer

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

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