Skip to content

Instantly share code, notes, and snippets.

@jcasabona
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcasabona/557cfebaa65127b15c33 to your computer and use it in GitHub Desktop.
Save jcasabona/557cfebaa65127b15c33 to your computer and use it in GitHub Desktop.
Google Authenticated User Query Variable

Inspired by: http://www.techrepublic.com/blog/google-in-the-enterprise/quick-tip-add-alternate-email-addresses-for-calendar-scheduling/

If you have multiple Google Accounts and get calendar or hangout invites to the wrong account, there's a real simple fix

https://www.google.com/calendar/b/0/render?tab=mc#main_7

Notice the '0' in the URL. That's the ID of the currently authenticated user. By changing this ID, you can view the calendar of any other authenticated user. So, for example, if you take these actions:

  1. You login to your GMail account, name@gmail.com. That is now ID: 0
  2. You then login to your Work account, which uses Google Apps, name@work.com. That is now ID: 1.
  3. You get an invite for your work account, but get sent to https://www.google.com/calendar/b/0/render?tab=mc#main_7

The invite will not work because Google thinks you're accepting on behalf of name@gmai.com, not name@work.com. Simple change the 0 to a 1, like so:

https://www.google.com/calendar/b/1/render?tab=mc#main_7

And it should work. This should also apple to any Google app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment