currentUser()



This function returns the user name of the user signed into the Profound UI application.

Example:

var user = currentUser(); if (user != "QSECOFR") { // check if security officer is signed on pui.click("btnExit"); // automatically click the exit button }