exp:expuserwhoami
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Which account the console acts as (the user of [UserSettings] UserCreatorID, or --as), with its roles and whether it has every right
Usage
./console exp:expuserwhoami [options] php bin/php/expuserwhoami.php [options] ./console exp:user:whoami [options]
Aliases
exp:user:whoami
Help
The output of ./console help exp:expuserwhoami (the script run with --help), without the standard options:
Usage: bin/php/expuserwhoami.php [OPTION]... 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: --as=VALUE Act as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it --format=VALUE text (default) or json (the machine output exp-user/1)
Options
| Option | Value | Description |
|---|---|---|
| --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) |
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/expuserwhoami.php, kernel/private/classes/commands/expuserwhoami.php
See also
Generated example: exp:expuserwhoami
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment