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

Find, create and change accounts

exp:user:list and exp:user:show find and inspect accounts by state, group and search; exp:user:create creates an account through the content publish with a password nobody types on a command line; exp:user:edit changes…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/user-management-from-the-console/find-create-and-change-accounts.md

On this page

Find, create and change accounts

exp:user:list and exp:user:show read; exp:user:create and exp:user:edit change. The changing commands are a dry run until you add --apply.

What you'll have at the end

Any account found and inspected, a new account in the right groups, and an existing account with a new address, login, name or group.

Find accounts

./console exp:user:list
./console exp:user:list --state=disabled --group=Editors
./console exp:user:list --state=inactive --days=365 --sort=last_visit --order=desc
./console exp:user:list --search=example.com --limit=100 --offset=100
OptionMeaning
--stateall (default), enabled, disabled, unactivated, pending, locked, never, inactive, orphaned, duplicate_login, duplicate_email
--groupa user group by node id or name: its members at any depth
--searcha text in the login, the name or the e-mail address
--dayswith --state=inactive: not signed in for this many days (default 180)
--sort, --ordername (default), login, email, last_visit, login_count, id; asc (default) or desc
--limit, --offsetpage size (default 25, at most 500) and the accounts to skip

The states are the filters of Users > Check user accounts. The tutorial explains each one: User management from the console.

Inspect one account

./console exp:user:show jane
./console exp:user:show [email protected]
./console exp:user:show 1234 --format=json

The output names the groups (the main group first), every role with where it comes from and its limitation, the state, the registration, the sign-ins and failed attempts, the last password change, two-step sign-in, the active sessions and whether the account is protected. It never shows a password hash.

Create an account

  1. Run the command without --apply.

    ./console exp:user:create --login=jane --email[email protected] --first-name=Jane --last-name=Doe \
        --group=Editors --generate-password

    The command lists what it would create and which checks fail.

  2. Fix any check that fails, for example a login that is taken.

  3. Run the same command with --apply. The account is published. A generated password is printed once.

--login and --email are required. Repeat --group for more groups; the first is the main group. Without --group the account goes to [UserSettings] DefaultUserPlacement. --class picks another user class than [UserSettings] UserClassID.

Choose one way to the password:

OptionWhat happens
--generate-passworda password that passes the password rules, printed once
--password-stdinone line read from standard input, from a password manager, a file of mode 0600 or a CI secret
--send-activationthe account starts disabled and gets the activation mail; the person then chooses a password with Forgot password

--disabled creates the account disabled; enable it later with exp:user:enable.

Note: The account is published with its workflows. Where new accounts need approval, the account waits and shows up in exp:user:pending (Approve registrations).

Change an account

./console exp:user:edit jane --email[email protected] --apply
./console exp:user:edit jane --login=jdoe --apply
./console exp:user:edit jane --first-name=Janet --last-name=Doe --apply
./console exp:user:edit jane --add-group=Editors --remove-group=Members --main-group=Editors --apply
  • A new e-mail address and login get the same checks as on create. The audit records access.user.email.change and access.user.login.change.
  • A new name is a new version of the user object, published with its workflows.
  • --add-group adds a location in a group, --remove-group removes one. Both can be repeated.
  • An account always keeps at least one group. When the main group goes, the next group becomes the main one, or the one you name with --main-group.

To move an account between groups, add the new group and remove the old one in one command.

Remove an account

exp:user:delete removes an account for good. Read Disable, enable and remove accounts first: in most cases, disabling is the better choice.

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