info(“loggedinaccountrole”)
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:

- Anyone
- User
- Developer
- Administrator

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

- Creating a New Panorama X Account -- setting up a new account.
- Managing Account Roles -- configuring a Panorama X account for a team, assigning privilege levels for administrators, developers, and general users.
- Managing Your Panorama X Account -- account expiration, adding credits, monitoring account activity, managing logged in computers, modifying contact information/passwords.
- Panorama X Account FAQ -- frequently asked questions about Panorama X accounts and pricing.
- Deploying Panorama in an Organization -- transferring preferences and/or account login credentials to multiple computers.
- info("loggedinaccountemail") -- returns the currently logged in account ID (email address).

History

Version | Status | Notes
10.0 | New | New in this version (but not documented until 10.2).