exp:addmembermanagement
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Set up member management from membermanagement.ini: the role that lets a group (default Editors) manage the accounts of another (default Members), never Administrator users or Editors (dry run unless --apply)
Usage
./console exp:addmembermanagement [options] php bin/php/addmembermanagement.php [options]
Help
The output of ./console help exp:addmembermanagement (the script run with --help), without the standard options:
Usage: bin/php/addmembermanagement.php [OPTION]...
Set up member management as membermanagement.ini describes it: for each rule, the role with the
rule's policy set (each content policy limited to the managed groups), assigned to the manager groups.
The defaults give the Editors group the role "Member management" over Members. A rule whose managed
groups reach a protected group (default Administrator users and Editors) is refused. What a role already
has is left alone, so the script can run again. Prints PASS or FAIL at the end.
Without --apply nothing is written: the script lists what it would create, add and assign. --dry-run
is still accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
Example: php bin/php/addmembermanagement.php
php bin/php/addmembermanagement.php --apply
php bin/php/addmembermanagement.php --apply --rule=editors_manage_members
Options:
--apply Write the changes (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, added and assigned; change nothing
--rule=VALUE... Only this rule ([MemberRule_<name>]), may be repeatedOptions
| Option | Value | Description |
|---|---|---|
| --apply | - | Write the changes (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, added and assigned; change nothing |
| --rule | required | Only this rule ([MemberRule_<name>]), may be repeated |
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/addmembermanagement.php, kernel/private/classes/commands/addmembermanagement.php
See also
Generated example: exp:addmembermanagement
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment