Skip to main content

admin:user:change-status

Changes the status of an admin user.

The command can be used to activate or deactivate a user. If no option is provided, the status will be toggled.

Usage​

n98-magerun2.phar admin:user:change-status [options] <username>

Arguments​

ArgumentDescription
usernameThe username or email of the admin user to modify.

Options​

OptionDescription
--activateActivates the specified user.
--deactivateDeactivates the specified user.

Examples​

Activate a user​

n98-magerun2.phar admin:user:change-status --activate john.doe

Deactivate a user​

n98-magerun2.phar admin:user:change-status --deactivate john.doe

Toggle a user's status​

If john.doe is currently active, this command will deactivate them. If they are inactive, it will activate them.

n98-magerun2.phar admin:user:change-status john.doe