O.currentUser

property O.currentUser

Returns a SecurityPrincipal representing the currently logged in user.

Example

This property is useful for performing authorisation in plugin requests. For example:

if(O.currentUser.isMemberOf(GROUP["std:group:administrators"])) {
    // do action
} else {
    // redirect away to unauthorised page
}