exp:expuserwhoami
Which account the console acts as (the user of [UserSettings] UserCreatorID, or --as), with its roles and whether it has every right.
Script bin/php/expuserwhoami.php, code in kernel/private/classes/commands/expuserwhoami.php. Run it from the installation root, as the user the web server runs as:
./console exp:expuserwhoami --help
./console exp:user:whoami --help
php bin/php/expuserwhoami.php --helpHelp text
Which account the console acts as
The exp:user commands act as the user of [UserSettings] UserCreatorID, or as the user --as names;
the audit records that user as who did it. This shows the account, its roles and whether it has
every right (a role with a policy on every module). Run it before a script that changes accounts.
Changes nothing.
./console exp:user:whoami
./console exp:user:whoami --as=jane --format=jsonOptions
| Option | Value | Help |
|---|---|---|
--as | required | Act as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it |
--format | required | text (default) or json (the machine output exp-user/1) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expuserwhoami.php, kernel/private/classes/commands/expuserwhoami.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.