Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:addmembermanagement

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).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/addmembermanagement.md

On this page

exp:addmembermanagement

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).

Script bin/php/addmembermanagement.php, code in kernel/private/classes/commands/addmembermanagement.php. Run it from the installation root, as the user the web server runs as:

./console exp:addmembermanagement --help
php bin/php/addmembermanagement.php --help

Help text

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

OptionValueHelp
--applyWrite the changes (the default is a dry run that lists them and changes nothing)
--dry-runThe default, kept for scripts that pass it: list what would be created, added and assigned; change nothing
--rulerequiredOnly this rule ([MemberRule_<name>]), may be repeated

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 ...).


Generated by ./console exp:help:examples from bin/php/addmembermanagement.php, kernel/private/classes/commands/addmembermanagement.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x