function users_getprduser () {

if [ $# -ne 1 ]; then
    echo "$0: supply a VO as an argument"
    return 1
fi

# Get the entry marked prd for that vo. 
# If there's more than one result, take the most numerous

return=`awk -F: '$6=="prd" && $5==tolower(virtorg){print $2}' virtorg=$1 ${USERS_CONF} | sort | uniq -c | sort -n -k 1,1 | tail -1 | awk '{print $2}'`

if [ "$return" ]; then
    echo $return
    return 0
else
    echo "$FUNCNAME: could not find prd user for $1 in ${USERS_CONF}" 1>&2
    return 1
fi

}
