You are here

getPerson

ScriptNode getPerson(username) returns a single (cm:person) node associated with the specified user name, or null if the person does not exist.

Parameters

username
A string representing the user name for the user who is being fetched.

Returns

A node representing the user requested, or null if the user name cannot be found.

Example

The following code snippet returns the node object for the user with the username abeecher:

model.user = people.getPerson("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.