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