PortalUser
This object is only available to the Portal if the Portal has security (
hasSecurity
) enabled and the current user is logged in (
isAuthenticated
). If those two conditions fail, this object will be
null and any attempt to reference it will result in a Freemarker error. This
can be using the following code:
<#if hasSecurity && isAuthenticated> <#-- Can now safely reference ${user} --> </#if>
or:
<#if user??> <#-- Can now safely reference ${user} --> </#if>
Properties
-
String id
- A persistent, obfuscated character string based on login name, which identifies the current user.
-
String userName
- The username of the user, as specified by the server pointed to in this Portal's security configuration.
-
Map properties
- The user properties pulled from the authentication service. For SAML-secured and OpenID-secured portals, this will contain whatever attributes were included in the authentication response message sent by the Identity Provider. For LDAP-secured portals, this will contain the properties listed in the LDAP connection configuration. NOTE: This collection allows for multi-valued properties, so values are arrays, not single values. Properties with single values will be lists of size 1.