exp:expuserenable
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Enable a disabled user account again, as Edit user settings does; an account that was never activated is approved with exp:user:approve instead (a dry run unless --apply)
Usage
./console exp:expuserenable [options] php bin/php/expuserenable.php [options] ./console exp:user:enable [options]
Aliases
exp:user:enable
Help
The output of ./console help exp:expuserenable (the script run with --help), without the standard options:
Usage: bin/php/expuserenable.php [OPTION]... [USER] Enable a user account Enables a disabled account again through the setsettings operation of the user module, as Edit user settings does. An account that was never activated (it still has its activation key) is not enabled here: exp:user:approve finishes its registration, with the mails and steps that belong to it. Without --apply nothing is changed. ./console exp:user:enable jane ./console exp:user:enable jane --apply Options: --apply Make the change; without it the command only lists what it would change (a dry run) --dry-run The default, kept for scripts that pass it: list what would change, change nothing --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 |
|---|---|---|
| --apply | - | Make the change; without it the command only lists what it would change (a dry run) |
| --dry-run | - | The default, kept for scripts that pass it: list what would change, change nothing |
| --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) |
Arguments
[user]
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/expuserenable.php, kernel/private/classes/commands/expuserenable.php
See also
Generated example: exp:expuserenable
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment