# Personal message only certain users

**URL:** https://meta.discourse.org/t/personal-message-only-certain-users/280607
**Category:** Support
**Tags:** personal-messages
**Created:** [September 30, 2023, 11:37am UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607 "2023-09-30T11:37:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Gonzalez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_gonzalez/32/330315_2.png) [@Victor\_Gonzalez](https://meta.discourse.org/u/Victor_Gonzalez)
#### Post date: [September 30, 2023, 11:37am UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/1 "2023-09-30T11:37:17Z")

</div>

I’m building a community and would like to allow only private messages from certain groups only to admins/moderators, for examples users in group 1 can only message moderators & admins, not other users in group 1. Is this possible?

I’m trying to turn the messages feature into a support feature, basically.

Thanks in advance

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 30, 2023, 12:05pm UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/2 "2023-09-30T12:05:51Z")

</div>

Have a look at [GitHub - pfaffman/discourse-allow-pm-to-staff: Allow private messages to be sent to staff for users who could otherwise not send private messages. · GitHub](https://github.com/pfaffman/discourse-allow-pm-to-staff)

It allows all users to pm staff.

If you want it only for some groups it’ll need some changes, I think.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 30, 2023, 12:13pm UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/3 "2023-09-30T12:13:48Z")

</div>

Actually, if you set the group setting `who can message this group` to ‘everyone’ it supersedes the `personal message allowed group` settting.

So if you set up a group called eg. `@support` you can have everyone allowed to send it a PM even if they cant send PMs to anyone else.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 30, 2023, 12:15pm UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/4 "2023-09-30T12:15:55Z")

</div>

Aha! I wasn’t paying attention to that and think I modified my plugin after that change got made. I may need to take a look at that again.

---

<div class="post-metadata">

### Author: ![Victor\_Gonzalez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_gonzalez/32/330315_2.png) [@Victor\_Gonzalez](https://meta.discourse.org/u/Victor_Gonzalez)
#### Post date: [September 30, 2023, 12:35pm UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/5 "2023-09-30T12:35:53Z")

</div>

Yep I managed to get that working, thanks to both!!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 6, 2023, 9:19pm UTC](https://meta.discourse.org/t/personal-message-only-certain-users/280607/6 "2023-11-06T21:19:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
