How to export a list of all users on a server

Hello,

I am looking for a way to export a list of all users on a server (not messages, teams, channels, etc.)
My goal is to export a list of all MM users on our self hosted server that I could easily filter and manipulate for access review purposes (I plan to have it in google sheets).

I found this article Bulk export tool — Mattermost documentation , but it seems there is no way to limit what the command exports, I do not need all the posts, channels or teams just the users. Did I miss something and is it possible to use the export bulk command users data type?

Ideally I would like to have the following attributes for all users (username, email, first name, last name, team membership, access level, blocked/inactive status, latest date of activity).

Any help with this would be greatly appreciated.

Hi Ignas,

there is no such tool available as far as I know, but the data is available in the database, so a small script should be able to export all the relevant data into a CSV or whatever format is suitable for you working forther on the output.