Skip to content

hardis:org:user:activateinvalid

Description

Update sandbox users so their email is valid

Example: replaces toto@company.com.dev.invalid with toto@company.com.dev.invalid

See article below

Reactivate all the sandbox users with .invalid emails in 3 clicks

Agent Mode

Supports non-interactive execution with --agent:

sf hardis:org:user:activateinvalid --agent --target-org my-user@myorg.com

In agent mode:

  • All interactive prompts and confirmations are skipped.
  • All users with .invalid emails are activated automatically.
  • Use --profiles to limit the scope to specific profiles.

Parameters

Name Type Description Default Required Options
agent boolean Run in non-interactive mode for agents and automation
debug
-d
boolean Activate debug mode (more logs)
flags-dir option undefined
json boolean Format output as json.
profiles
-p
option Comma-separated list of profiles names that you want to reactive users assigned to and with a .invalid email
skipauth boolean Skip authentication check when a default username is required
target-org
-o
option undefined
websocket option Websocket host:port for VsCode SFDX Hardis UI integration

Examples

$ sf hardis:org:user:activateinvalid
$ sf hardis:org:user:activateinvalid --target-org my-user@myorg.com
$ sf hardis:org:user:activateinvalid --profiles 'System Administrator,MyCustomProfile' --target-org my-user@myorg.com
$ sf hardis:org:user:activateinvalid --agent