Syntax
string getgroup ( string user )
Description
getgroup returns the specified user’s primary group name from the policy server (or from the client host if getpasswordfromrun is set to yes in the policy server's pm.settings file). If no user is specified, it returns the submituser’s primary group.
Example
# print root user's primary group on the policy server print(getgroup("root"));