Trying to Delete User Accounts

From what I understand, it is impossible to delete a user account outside of the command line tools. How do I use MMCTL to delete a user account when it is deployed on a Truenas Server?

Mattermost doesn’t recommend to delete objects like users, channels, posts, etc.. to avoid inconsistencies in the database. AFAIK mmctl is the only way to delete users right now.

What do you mean with that? How did you deploy Mattermost on TrueNAS?

If you’re not able to connect to the VM or container to use the mmctl tool directly, you should know that mmctl can be built and used anywhere on the network. You just have to change the mattermost url that mmctl is trying to reach.

Mattermost doesn’t recommend to delete objects like users, channels, posts, etc.. to avoid inconsistencies in the database. AFAIK mmctl is the only way to delete users right now.

I am trying to setup default channels. They only apply to brand new accounts being made. I have to create an account to see if it works. When I inevitably fail, I have to delete the account or I will end up with a lot of accounts for every time I failed to have an account join the default channels correctly.

How did you deploy Mattermost on TrueNAS?

I installed Truenas on a computer. I then had it install the MatterMost app and NGINX app. I setup a website domain for it. I told Mattermost app to respond to the web domain.

If you’re not able to connect to the VM or container to use the mmctl tool directly,

I tried to use the built in container terminal system but the app itself doesn’t seem to have that working. I tried to ssh into the container but it doesn’t seem to work. I don’t know if I am doing something wrong. I believe I tried things like

ssh -p xxxx truenasadmin@ip

and

ssh -p xxxx truenasadmin@www.name.com

I was wondering if I was doing something wrong.

Does anyone have advice on how to solve this problem?

Do you use Mattermost for personal or business reasons? If it’s for business, you should deploy a test environment separated from the production environment. Then it doesn’t matter how much useless accounts you have and you’re not risking problems in production env just for testing stuff.

So, your deployment is container-based? Then I’m not surprised you can’t ssh into your container. Dependant on what image you use, there is no ssh server installed, usually.

You should be able to connect inside your container via TrueNAS (GUI?).

Option 2 is, as I wrote earlier, to get the mmctl binary (or build it yourself) on another pc in your network and use it to connect to your mattermost server via http/https.

1 Like