helper fn to determine privilieged user