gp.mappers.runcommand.as.user
This configuration parameter specifies whether to run user group policy commands as the current user. The default for this parameter is false, which means that the service runs these commands as root.
The RunCommand.pl script reads this parameter setting and if the parameter is set to true, then it runs commands as follows:
su - $args ->user() -c $command