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

Audit and hygiene

exp:user:audit shows the user audit log rows about an account or by it, filtered by event, result and dates; exp:user:hygiene counts the accounts per state, each with the exp:user:list command that lists them.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/user-management-from-the-console/audit-and-hygiene.md

On this page

Audit and hygiene

exp:user:audit answers what happened to one account. exp:user:hygiene answers which accounts need attention. Both only read.

What you'll have at the end

The history of an account, and a list of the accounts to tidy up.

The history of an account

./console exp:user:audit jane
./console exp:user:audit jane --event=access.user.password --from=2026-10-01
./console exp:user:audit jane --result=refused --limit=50

The command lists the rows of the user audit log (Users > User audit log) about the account or done by it: the time, the event, the result, the actor and the siteaccess.

OptionMeaning
--eventan event name or its beginning, for example access.user.password
--resultsuccess, refused or failed
--from, --todays as YYYY-MM-DD
--limit, --offsetpage size and the rows to skip

Use it when someone asks why their account changed, or when a sign-in looks suspicious.

The state of all accounts

./console exp:user:hygiene
./console exp:user:hygiene --days=365

The command shows the counts of Users > Check user accounts: the accounts per state.

StateAccounts
enabled, disabledcan or cannot sign in
unactivatedregistered, never activated
pendingregistrations that wait
lockedtoo many wrong passwords
never signed increated, never used
inactivenot signed in for --days days (default 180)
orphanedno user object, never published, or no location
duplicate logins, duplicate e-mail addressesshared with another account

Each count comes with the exp:user:list command that lists those accounts. Copy it to see them, then act with the single commands or with exp:user:bulk.

A regular review

  1. Run ./console exp:user:hygiene.
  2. List the accounts of each count that is not 0, with the command shown next to it.
  3. Disable the accounts nobody needs (Bulk changes).
  4. Unlock or reset the locked ones that belong to active people.
  5. Ask the owners of duplicate e-mail addresses which account they use.

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