developer logo

sv:user

User nodes are located in the external repository (sv:externalPrincipalRepository) or in user container (sv:userContainer) nodes. They have no children.

The user nodes correspond to the users defined in the directories.

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").

 

Properties

Name

Type and description

description

javax.jcr.PropertyType.STRING


User description.



directory

javax.jcr.PropertyType.WEAKREFERENCE


The LDAP directory where the user is defined.



displayName

javax.jcr.PropertyType.STRING

 

The name of the user.



dn

javax.jcr.PropertyType.STRING


Last known DN (Distinguished Name).



givenName

javax.jcr.PropertyType.STRING

 

An array of given names.



groups

Multi-Value of javax.jcr.PropertyType.WEAKREFERENCE


An array of the (directory) groups to which the user belongs.



mail

javax.jcr.PropertyType.STRING

 

An array of email addresses.



mobile

Multi-Value of javax.jcr.PropertyType.STRING


An array of mobile phone numbers.



objectClass

Multi-Value of javax.jcr.PropertyType.STRING


Attribute definitions.



parent

javax.jcr.PropertyType.WEAKREFERENCE


A reference of the parent node.



sn

javax.jcr.PropertyType.STRING

 

User surname.



subscriptions

Multi-Value of javax.jcr.PropertyType.WEAKREFERENCE



telephoneNumber

javax.jcr.PropertyType.STRING

 

An array of telephone numbers.



title

Multi-Value of javax.jcr.PropertyType.STRING


An array of titles.



uid

javax.jcr.PropertyType.STRING


The unique LDAP id for the user.



username

Multi-Value of javax.jcr.PropertyType.STRING


An array of user names.

SiteVision Utility API tip!

  • Current user can be looked up via PortletContextUtil.getCurrentUser.
  • The DirectoryUtil interface exposes a set of methods for searching a specific directory and getting a sv:user by its DN.
  • The sv:userIdentity for a sv:user can be looked up via UserIdentityUtil.getUserIdentity.
  • The UserUtil interface contains functionality to check group membership​
  • The UserDataUtil can be used to manage personal user data
  • The LinkRenderer interface can be used to render a link for a sv:user (a mailto link or a link to the profile page of the sv:user's sv:userIdentity).