When attempting to login using Google (SAML) integration, Hubspot redirects the user to https://accounts.google.com/o/saml2/idp?idpid=…, but without the `login_hint` parameter. As a consequence, Google attempts to use whichever account the user happens to be signed in with, which may or may not match the one to be used for Hubspot sign in.
In the case when the user is signed in to a different Google account, the user will experience an error like the following:
And no option is available to switch accounts -- the only workaround is to log out of the existing account and then sign into Google in the browser with the desired account, and finally log into Hubspot.
The solution to resolve this issue is for Hubspot to append “&login_hint=user@domain.com” to the SSO URL as described in Google’s documentation, which will enable Google to select the appropriate account and prompt for login as appropriate.
