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

For site administrators

What the exp:user commands give a site administrator who already manages accounts in the administration - when the console is faster, the commands for daily work, the safety rules, and a weekly routine.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/user-management-from-the-console/for-site-administrators.md

On this page

For site administrators

Everything here can also be done in the administration. The console is faster when you work on many accounts, when you are on the server anyway, or when the administration is out of reach.

What you'll have at the end

A clear idea of when to use the console, and the handful of commands you need every week.

When the console helps

SituationCommand
Nobody can sign in to the administrationRecover a locked-out administrator
Someone leaves todayOffboard someone who leaves
Hundreds of registrations waitApprove a backlog of registrations
A list of new members arrives as a spreadsheetBulk-import members from CSV
You need to know who has which roleexp:user:roles list <user> (Groups and roles)
Someone asks what happened to their accountexp:user:audit <user> (Audit and hygiene)

The rules that keep you safe

  • Nothing changes without --apply. Run every command once without it, read the output, then add --apply.
  • Protected accounts are refused: the anonymous user, the UserCreatorID user, admin, yourself and the last enabled administrator.
  • A bulk change needs --confirm with the count of its dry run.
  • Every change is in the user audit log, with your name when you pass --as=<your login>.

Note: Pass --as=<your login> for changes you make yourself. Without it, the audit records the user of [UserSettings] UserCreatorID.

A weekly routine

  1. Run ./console exp:user:hygiene.
  2. Run ./console exp:user:pending and decide each waiting registration.
  3. Run ./console exp:user:list --state=locked and unlock the people you know.
  4. Disable the accounts that have not signed in for a year, after a dry run: ./console exp:user:bulk disable --state=inactive --days=365.

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