exp:adduserapproval
Set up the approval of new accounts in a user group (default: new Editors wait for the Administrator users): the workflow event on content/publish before and the role that lets the requesters create such accounts; --mode=section sets up the optional alternative, a section Staff with the plain approval event (both a dry run unless --apply).
Script bin/php/adduserapproval.php, code in kernel/private/classes/commands/adduserapproval.php. Run it from the installation root, as the user the web server runs as:
./console exp:adduserapproval --help
php bin/php/adduserapproval.php --helpHelp text
Set up the approval of new user accounts: the workflow "Options
| Option | Value | Help |
|---|---|---|
--apply | Make the changes, in either mode (the default is a dry run that lists them and changes nothing) | |
--dry-run | The default, kept for scripts that pass it: list what would be created and changed, change nothing | |
--mode | required | group (default: the event "Approve user accounts") or section (the section Staff and the plain approval event) |
--staff | required | --mode=section: a group whose accounts go into the section Staff (default Administrator users and Editors), may be repeated |
--exempt | required | --mode=section: a group whose members need no approval (default Administrator users), may be repeated |
--required | required | A group whose new accounts need approval (default Editors), may be repeated |
--approvers | required | A group whose members approve (default Administrator users), may be repeated |
--requesters | required | A group that may create accounts in the required groups and waits for approval (default Editors), may be repeated |
--no-role | Do not create or assign the requesters' role (the requesters have their policies already) | |
--admin-id | required | The user the workflow is created by (default 14) |
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/adduserapproval.php, kernel/private/classes/commands/adduserapproval.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.