Logotype Sitevision Developer

Log in

Log in

sv:simpleUser

Simple user nodes are located in the external repository (sv:externalPrincipalRepository).

The data of a simple user is dynamic since it is created in SiteVision via external data for external users that is authenticated via SAML, CAS or such. SiteVision typically has no access to the backend (likely a ldap directory) of the actual external user.

Simple user nodes implement some of the functionality in JCR level 2. It is possible to change some of the properties or add properties to a user.

Node name

Name

Type and description

<user-name>

Dynamic / Model dependent


The name of the user (e.g. "John Doe").

 

The simple user is populated with the provided data (e.g. SAML ticket) when the user is authenticated/created. In other words - there are no guarantee that a specific property is available. The table below lists the properties that are commonly available.

Properties

Name

Type and description

anonymized

javax.jcr.PropertyType.BOOLEAN


Whether or not this user is anonymized [@since Sitevision 2025.01.1]



description

javax.jcr.PropertyType.STRING


User description.



displayName

javax.jcr.PropertyType.STRING


The name of the user.



givenName

javax.jcr.PropertyType.STRING


An array of given names.



mail

javax.jcr.PropertyType.STRING


An array of email addresses.



sn

javax.jcr.PropertyType.STRING


User surname.



telephoneNumber

javax.jcr.PropertyType.STRING


An array of telephone numbers.



title

javax.jcr.PropertyType.STRING


An array of titles.



useLocalAuthentication

javax.jcr.PropertyType.BOOLEAN


Whether or not this user uses local authentication. Users with local authenticaten has its credentials in Sitevision ("Web user"). [@since Sitevision 4.5.3]



externalId

javax.jcr.PropertyType.STRING


The external identifier ("simple id") of the user. NOTE! Not accessible for everyone - access requires the MANAGE_USERS permission [@since Sitevision 8.1]

Sitevision Utility API tip!

  • Current user can be looked up via PortletContextUtil.getCurrentUser.
  • The sv:userIdentity for a sv:simpleUser can be looked up via UserIdentityUtil.getUserIdentity.
  • The UserDataUtil can be used to manage personal user data
  • The LinkRenderer interface can be used to render a link for a sv:simpleUser (a mailto link or a link to the profile page of the sv:simpleUser's sv:userIdentity).
  • The SimpleUserUtil interface exposes a set of methods for checking a sv:simpleUser.
  • The SystemUserUtil contains several useful methods, for instance to check whether the current user is logged in or not.
Did you find the content on this page useful?