You are here

getPersonFullName

ScriptNode getPersonFullName(username) avoids complete getProperties() retrieval for a cm:person when the script only requires the full name of person.

Parameters

username
A string representing the user name of the user for which to return the full name.

Returns

Full name of the person or null if the user does not exist in the system.

Example

The following code snippet returns the full name for the user with the username abeecher:

model.fullname = people.getPersonFullName("abeecher");  
      

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.