info("loggedinaccountrole")

The info(“loggedinaccountrole”) function returns the currently logged in account role.


Description

This function returns the currently logged in account role. The possible roles returned by this function are:

This example checks to see if the current user is logged on with Administrator privileges, and prevents the code from continuing if the user has a lower privilege level.

if info("loggedinaccountrole") <> "Administrator"
    message "You are not authorized to perform this operation."
    return
endif
...
... code of sensitive operation
...

See Managing Account Roles to learn how to configure Panorama account roles.


See Also


History

VersionStatusNotes
10.0NewNew in this version (but not documented until 10.2).