
sgik2 (sgik2) asked a question.
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!

Hello @sgik2 (sgik2) , thank you for contacting Okta Community!
I've reviewed our documentation for something relevant. It looks like your question is more appropriate for our dedicated Okta Developer Forum. I advise reaching out via devforum.okta.com as they will have more insight into this topic.
While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).
Regards.
--
Join the discussion for Ask Me Anything on February 4, 2025: Advancements in Okta’s On-Prem Directory Integrations