Skip to the content
Documentation

exp:expusergroups

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

User groups: list the group tree with its members, create, rename and move a group, remove an empty group to the trash (changes are a dry run unless --apply)

Usage

./console exp:expusergroups [options]
php bin/php/expusergroups.php [options]
./console exp:user:groups [options]

Aliases

exp:user:groups

Options

Option Value Description
--parent required groups create: the group the new group goes below (node id or name; default the users root, content.ini [NodeSettings] UserRootNode)
--name required groups create and rename: the name of the group
--to required groups move: the group to move it below (node id or name); audit: only events on or before this day (YYYY-MM-DD)
--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

[action][group]

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/expusergroups.php, kernel/private/classes/commands/expusergroups.php

See also

Generated example: exp:expusergroups

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.