"CurrentUser" Context
Readibots provides a special variable available to determine the current user running a script or viewing data.
Getting Current User in Script
To determine the UPN of the current user running a script, the $sessionvars["CbUserName"] variable can be used. This will return the UPN as a string of the current user running the script.
Filtering Data Based on Current User
To filter data in a view to rows with the value of the current user’s UPN, use @CurrentUser as the value in the filter criteria for the grid.