getfullname

Description

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.

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

result = getfullname([user]);

Arguments

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.

Return Values

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.