exp:expuserhygiene
The counts of Users > Hygiene: accounts per state (disabled, unactivated, pending, locked, never signed in, inactive, orphaned, duplicate logins and addresses), each with the command that lists them.
Script bin/php/expuserhygiene.php, code in kernel/private/classes/commands/expuserhygiene.php. Run it from the installation root, as the user the web server runs as:
./console exp:expuserhygiene --help
./console exp:user:hygiene --help
php bin/php/expuserhygiene.php --helpHelp text
The state of the accounts at a glance
Counts the accounts in each state of Users > Hygiene: all, enabled, disabled, unactivated, pending,
locked, never signed in, inactive (not signed in for --days days), orphaned, and logins and e-mail
addresses more than one account has; each with the exp:user:list command that lists them. Changes
nothing. Run it before a clean-up, and from a monitoring job with --format=json.
./console exp:user:hygiene
./console exp:user:hygiene --days=365 --format=jsonOptions
| Option | Value | Help |
|---|---|---|
--days | required | With --state=inactive: not signed in for this many days (default 180) |
--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/expuserhygiene.php, kernel/private/classes/commands/expuserhygiene.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.