Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expuserwhoami

Which account the console acts as (the user of [UserSettings] UserCreatorID, or --as), with its roles and whether it has every right.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expuserwhoami.md

On this page

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 --help

Help 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=json

Options

OptionValueHelp
--asrequiredAct as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it
--formatrequiredtext (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 ...).


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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x