Distinguish Between Activated and Deactivated Users in `mmctl user list`

Currently, mmctl user list seems to output deactivated users as well as active users.

I also could not find a way to distinguis between deactivated users and active users in other mmctl commands - it’s not possible to search for them, and the information is not even contained in the user meta data returned by a search.

How can I use the CLI to only obtain a list of activated users, filtering out all deactivated ones?

Hi,

I think you would have to use the API for that currently, since there’s no implementation in mmctl I’m aware of which does that.
The API, however, supports that and has a flag “active” you can use to filter:

https://api.mattermost.com/#operation/GetUsers

Best,
Alex