whoami()

Returns the name of the account that is currently executing the query.

Syntax

whoami()

Description

The procedure is executed with owner privileges. If you call this function within a procedure, the name of the owner account is returned. The procedure is executed with owner privileges.

Usage

Return the current execution account name.

json "{}" | eval user=whoami() => "root"