exp:expusershow
Show one user account: groups, roles with their limitation, enabled or locked, last visit, registration state, two-step sign-in and active sessions (never a password hash).
Script bin/php/expusershow.php, code in kernel/private/classes/commands/expusershow.php. Run it from the installation root, as the user the web server runs as:
./console exp:expusershow --help
./console exp:user:show --help
php bin/php/expusershow.php --helpHelp text
Show one user account
Names the account by its login, its e-mail address (when one account has it) or its id, and
shows its groups (the main one first), its roles with where they come from and their limitation,
whether it is enabled, unactivated or locked, its sign-ins and last visit, the state of its
registration, two-step sign-in, active sessions, whether a new password is required, and whether
the account is protected from being disabled or removed. Never a password hash. Changes nothing.
./console exp:user:show admin
./console exp:user:show [email protected] --format=json
./console exp:user:show 14Options
| 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 ...).
Arguments: [user].
Related
Generated by ./console exp:help:examples from bin/php/expusershow.php, kernel/private/classes/commands/expusershow.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.