Service Hub Onboarding

OTanti
参加者

Hubspot Contact Email Field in Form Pre-Populated from SSO Login

解決

We have a knowledge base article on hubspot https://portal.domain.com/knowledge-base/more-info which is behind SSO.

When a user tries to access https://portal.domain.com/knowledge-base/more-info they will be redirected to Microsoft Login and once the login is successful Azure will return the response to https://portal.domain.com/_hcms/mem/saml (we do not have control over this url) with a base64encoded string containing all the user details and then hubspot will parse the data and will redirect the user back to the original page https://portal.domain.com/knowledge-base/more-info.

Since in this article https://portal.domain.com/knowledge-base/more-info we have a form which creates a ticket we created a field for the Contact Email Property in order to be able to have the ticket associated to the Contact submitting the form. We also enable pre-populate feature on the form.

The problem is that the pre-populate feature on the form from Hubspot works based on a cookie which is set when they submit a form therefore:

  1. If the user never submitted a form or is working on a new device or incognito session, this cookie is not set therefore email is not pre-populated
  2. If the device is used by multiple users, it might be that I am logged on SSO with abc@domain.com, but if someone else on the same device submitted a hubspot form and inputted xyz@domain.com Hubspot will pre-populate it with xyz@domain.com

What we are after is that somehow, after Microsoft SSO login, on hubspot we have a cookie that provides us with the logged in user details from SSO SAML respone and then we pre-populate ourselves with javascript.

0 いいね!
1件の承認済みベストアンサー
kennedyp
解決策
コミュニティーマネージャー
コミュニティーマネージャー

Hubspot Contact Email Field in Form Pre-Populated from SSO Login

解決

Hey @OTanti, I see you also connected with HubSpot Support regarding this. Thank you for reaching out! To confirm,  HubSpot does not offer any custom configuration of the SSO process so it will not be possible to alter HubSpot's behavior to include the email in the redirect URL. 

I found your related post on our Ideas Forum here: https://community.hubspot.com/t5/HubSpot-Ideas/Contact-Email-Field-Pre-Populated-from-SSO-Login/idi-...
 

I upvoted and followed for updates. Thanks for contributing-- I am sure this will help other Community members too! 

 

Best, 
Kennedy


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !

元の投稿で解決策を見る

3件の返信
kennedyp
コミュニティーマネージャー
コミュニティーマネージャー

Hubspot Contact Email Field in Form Pre-Populated from SSO Login

解決

Hi @OTanti, thanks for your post! 

 

From what I understand, you are looking to use a cookie to pass the visitors' email address from the Azure SSO verification to prepopulate the form on the Knowledge Base page. 

 

I want to invite some experts to this thread. @Lucila-Andimol , @Jnix284, or @JByrne2 -- have any of you come across something similar to this or know of any alternatives? 😊

 

Best, 
Kennedy


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 いいね!
OTanti
参加者

Hubspot Contact Email Field in Form Pre-Populated from SSO Login

解決

Thank you @kennedyp .

0 いいね!
kennedyp
解決策
コミュニティーマネージャー
コミュニティーマネージャー

Hubspot Contact Email Field in Form Pre-Populated from SSO Login

解決

Hey @OTanti, I see you also connected with HubSpot Support regarding this. Thank you for reaching out! To confirm,  HubSpot does not offer any custom configuration of the SSO process so it will not be possible to alter HubSpot's behavior to include the email in the redirect URL. 

I found your related post on our Ideas Forum here: https://community.hubspot.com/t5/HubSpot-Ideas/Contact-Email-Field-Pre-Populated-from-SSO-Login/idi-...
 

I upvoted and followed for updates. Thanks for contributing-- I am sure this will help other Community members too! 

 

Best, 
Kennedy


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !