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.