The getfullname() function retrieves the full name of the specified user. This information is taken from the gecos field of /etc/passwd on the policy server host or the password map in NIS.
result = getfullname([user]);
|user||Optional. The name of the user ID for which a full name is retrieved. The value of the runuser variable is used when this argument is not specified.|
The full name of the user as specified in the gecos field of /etc/passwd or the NIS password map. An error is returned if the user is null or invalid.
result = getfullname();
In the example, result is assigned the full name of the runuser.
result = getfullname("user1");
In this example, result is assigned the full name of user1.