How can I disable direct message from channel

Description

I don’t want any member in some channel can directly message to other member, and also wanna disable searching other members too. But i can’t find any setting about it, or how I can modify it.

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved:

Any additional Information

Hi! Welcome to our community!

You can change those behaviors by leveraging the permission system.

Check here what each of one does:

For disabling the directory (not allowing users to search for other users) you can change the view-outside-room permission.

And for creating direct messages, the permission would be create-d

Let me know if this helps.

Thanks!

yes it works. thank you. and how I can just back up my settings and users except using snap backup way

You can retrieve and change almost all settings from Rocket.Chat using APIs:

In fact, a good practice is to always configure Rocket.Chat using scripts via API, so you can easily reproduce the settings you want on a staging/test environment.

For permissions, it would be a different API:

Hope it helps :slight_smile: