Files
a444cc3c29 [MM-69598] Add mmctl user status command to get and set a user's status (#37312)
* Add mmctl user status get/set commands

Co-authored-by: mattermost-code <[email protected]>

* Register local-mode status routes and add mmctl status tests

Expose GET/PUT /users/{user_id}/status on the local socket API so
mmctl --local can read and set statuses, and add unit + e2e coverage
for the new user status commands.

Co-authored-by: mattermost-code <[email protected]>

* Improve mmctl status tests and validate dnd-end-time earlier

Validate --dnd-end-time before resolving the target user, add command
wiring/flag coverage, a GetMe failure case, and stronger e2e assertions
from the test-quality review.

Co-authored-by: mattermost-code <[email protected]>

* Regenerate mmctl docs for user status command

Co-authored-by: mattermost-code <[email protected]>

* Accept RFC3339 UTC timestamps for mmctl status --dnd-end-time

Use time.RFC3339 parsing so --dnd-end-time accepts Z-suffixed UTC
timestamps in addition to numeric offsets, per CodeRabbit review feedback.

Co-authored-by: mattermost-code <[email protected]>

* Show @username in mmctl user status output

---------

Co-authored-by: mattermost-code <[email protected]>

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-02 12:38:58 +02:00

60 lines
2.6 KiB
ReStructuredText

.. _mmctl_user:
mmctl user
----------
Management of users
Synopsis
~~~~~~~~
Management of users
Options
~~~~~~~
::
-h, --help help for user
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--config string path to the configuration file (default "$XDG_CONFIG_HOME/mmctl/config")
--disable-pager disables paged output
--insecure-sha1-intermediate allows to use insecure TLS protocols, such as SHA-1
--insecure-tls-version allows to use TLS versions 1.0 and 1.1
--json the output format will be in json format
--local allows communicating with the server through a unix socket
--quiet prevent mmctl to generate output for the commands
--strict will only run commands if the mmctl version matches the server one
--suppress-warnings disables printing warning messages
SEE ALSO
~~~~~~~~
* `mmctl <mmctl.rst>`_ - Remote client for the Open Source, self-hosted Slack-alternative
* `mmctl user activate <mmctl_user_activate.rst>`_ - Activate users
* `mmctl user attributes <mmctl_user_attributes.rst>`_ - Management of User Attributes
* `mmctl user change-password <mmctl_user_change-password.rst>`_ - Changes a user's password
* `mmctl user convert <mmctl_user_convert.rst>`_ - Convert users to bots, or a bot to a user
* `mmctl user create <mmctl_user_create.rst>`_ - Create a user
* `mmctl user deactivate <mmctl_user_deactivate.rst>`_ - Deactivate users
* `mmctl user delete <mmctl_user_delete.rst>`_ - Delete users
* `mmctl user demote <mmctl_user_demote.rst>`_ - Demote users to guests
* `mmctl user edit <mmctl_user_edit.rst>`_ - Edit user properties
* `mmctl user invite <mmctl_user_invite.rst>`_ - Send user an email invite to a team.
* `mmctl user list <mmctl_user_list.rst>`_ - List users
* `mmctl user migrate-auth <mmctl_user_migrate-auth.rst>`_ - Mass migrate user accounts authentication type
* `mmctl user preference <mmctl_user_preference.rst>`_ - Manage user preferences
* `mmctl user promote <mmctl_user_promote.rst>`_ - Promote guests to users
* `mmctl user reset-password <mmctl_user_reset-password.rst>`_ - Send users an email to reset their password
* `mmctl user resetmfa <mmctl_user_resetmfa.rst>`_ - Turn off MFA
* `mmctl user search <mmctl_user_search.rst>`_ - Search for users
* `mmctl user status <mmctl_user_status.rst>`_ - Get a user's status
* `mmctl user verify <mmctl_user_verify.rst>`_ - Mark user's email as verified