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:expuseredit

Change a user account: e-mail address, login, first and last name, groups added or removed, the main group (a dry run unless --apply).

Download as PDF

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

On this page

exp:expuseredit

Change a user account: e-mail address, login, first and last name, groups added or removed, the main group (a dry run unless --apply).

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

./console exp:expuseredit --help
./console exp:user:edit --help
php bin/php/expuseredit.php --help

Help text

Change a user account
Changes the e-mail address and the login (checked as the administration checks them: valid, not
another account's), the first and last name (a new version, published with its workflows), and
the groups: --add-group adds a location in a group, --remove-group removes one (an account keeps
at least one), --main-group chooses the main one. Without --apply nothing is changed.

./console exp:user:edit jane [email protected] --apply
./console exp:user:edit jane --add-group=Editors --remove-group=Members --main-group=Editors --apply
./console exp:user:edit 1234 --first-name=Janet --format=json

Options

OptionValueHelp
--emailrequiredThe e-mail address (create: of the new account; edit: the new address)
--loginrequiredThe login name (create: of the new account; edit: the new login name)
--first-namerequiredThe first name (the attribute first_name of the user class)
--last-namerequiredThe last name (the attribute last_name of the user class)
--add-grouprequiredAdd the account to this user group (node id or name; repeat for more)
--remove-grouprequiredRemove the account from this user group (node id or name; repeat for more); an account keeps at least one
--main-grouprequiredMake this group (node id or name, one the account is or becomes a member of) its main group
--applyMake the change; without it the command only lists what it would change (a dry run)
--dry-runThe default, kept for scripts that pass it: list what would change, change nothing
--asrequiredAct as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it
--formatrequiredtext (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 ...).

Arguments: [user].


Generated by ./console exp:help:examples from bin/php/expuseredit.php, kernel/private/classes/commands/expuseredit.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