userexists
Prototype: userexists(user)
Return type: boolean
Description: Return whether user name or numerical id exists on this
host.
Checks whether the user is in the password database for the current host. The argument must be a user name or user id.
Arguments:
user:string- User name or identifier - in the range:.*
Example:
body common control
{
      bundlesequence => { "example" };
}
bundle agent example
{
  classes:
      "ok" expression => userexists("root");
  reports:
    ok::
      "Root exists";
    !ok::
      "Root does not exist";
}Output:
R: Root exists