<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AJENm2CQHOkta Classic EngineAuthenticationAnswered2025-11-03T09:00:40.000Z2025-01-31T19:07:12.000Z2025-01-31T22:51:29.000Z

sgik2 (sgik2) asked a question.

Retrieving Authenticated User Email from Okta in a HubSpot CMS Page

Hello Everyone!

 

Long story short, I have a HubSpot CMS website which is protected using Okta SSO via OIDC. After logging in via Okta, the user is correctly redirected back to the resource he or she is trying to access, I also checked that __hsmem cookie exists which I believe confirms that Hubspot has an authenticated session.

 

The problem comes from me needing to retrieve the currently authenticated user's email inside my HubSpot CMS page, and I am quite lost on how I can achieve this goal. Is there a way to retrieve the authenticated user's email inside Hubspot after login? For example, can Okta pass user attributes (e.g., email) in a persistent way, such as a cookie or a header, that can be accessed after login?

 

Thank you so much for your help!


This question is closed.
Loading
Retrieving Authenticated User Email from Okta in a HubSpot CMS Page