Unfortunately this is not something we support. We do not provide any user details on a page-level for security reasons, hence why it would not be possible to fetch these values using any HubL variables.
For the full extent of what variables are supported, you can take a look at our documentation here:
Within this documentation you will find the different variables and where they're supported e.g the Website PageVariables is where variables are available for site pages, landing pages, system pages, and blogs - This then goes into the details of said variables and how to use them.
How do I get the email address and/or name of a user viewing a page that has signed in via sso?
Thats a shame. Would it still be a security risk though if it was only displayed to logged in users? Surely if its only printe once a secure session is created then its secure?
That would be correct, if there was a login and a secure portal where the user accesses this information, then it would be secure and would make sense to have this data available.
In this case though, we do not provide the relevant HubL tags that would output this value, regardless of the circumstances around whether or not the data is populated.