Prevent users from sending direct messages (DM)

I need to be able to prevent none admin users from sending direct messages to each other. There are setting that prevent users from creating private channels which is great but also need them to not be able to send direct messages to each other. The intention here is that all communication needs to be public to the group except for the admin.

I have seen a permission create_direct_channel which seems to only be available to on prem installs, is that correct?

Have also seen a plugin for this but again that seems to only be available to non cloud.

2 Likes

Is there a way to add plugins to the mattermost cloud? This capability seems to be disabled now but the documentation suggests it was once supported.

Plugin I am attempting to install is GitHub - Brightscout/mattermost-plugin-disable-dm: A mattermost plugin to disable direct messages and group chats.

Have you been able to ascertain whether they are unavailable?

I agree, because being able to ensure that all communication is public is important.

Have not been able to find a solution to this.

1 Like

Hello, I’m also in need of this functionality given the sensitive infos in our company.

Did you eventually find a way to disable dms? The plugin isn’t supported and I really wish it gets updated

Hello

I am also needing this functionality.
Is there any solution to it ?

I stumbled across this thread, but wanted to share that I have implemented something like this in the rocky linux community toolkit plugin I am developing, which is based on the “profanity filter” plugin, but has a lot of other features.

The original intent of the Block PM feature was to prevent new users from sending PMs to others until a certain time passes (e.g., to prevent someone being spammed or attacked via PM), but I can certainly make it so that if you set the time to a negative duration, no PMs will be allowed at all.

If that is interesting to anyone, let me know. You can find the plugin source here: GitHub - rocky-linux/mattermost-plugin-community-toolkit: A toolkit to help manage spam, harassment, and generally promote community health but be aware it’s a work in progress.

2 Likes

Thanks so much for sharing this, Neil! That sounds like a promising workaround. For anyone interested, here’s the plugin link again: rocky-linux/mattermost-plugin-community-toolkit