Getuser

getuser takes a User Name and returns the matching User Object.


Usage:


getuser(FQN)


Where:


FQN: Is the qualified name of the user to be retrieved.


Returns:


User Object


A qualified name can include as many Domain names as is necessary to uniquely identify the user. If the user name is unique within the Domains to which the invoking user has access, then no qualification is necessary. Only if there is more than one user with the same name (in different accessible domains) will it be necessary to qualify the user name with the domain in which it is located.


Examples:


1) Retrieve a User.


set user1 = getuser("admin");

echo "Name: ${user1.name}";

echo "Telephone: ${user1.phone}";


2) Retrieve a User specifying the enclosing domain:


set user1 = getuser("Project1.User1");


See Also:

getApplication(), getComponent(), getcredential(), getEnvironment(), getserver(),getusergroup()