# Automation not respecting encrypt/not encrypt for auto-pms

**URL:** <https://meta.discourse.org/t/automation-not-respecting-encrypt-not-encrypt-for-auto-pms/244980>\
**Category:** Bug\
**Tags:** encrypt, automation, size-s\
**Created:** [November 9, 2022, 4:53am UTC](https://meta.discourse.org/t/automation-not-respecting-encrypt-not-encrypt-for-auto-pms/244980 "2022-11-09T04:53:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [November 9, 2022, 10:23am UTC](https://meta.discourse.org/t/automation-not-respecting-encrypt-not-encrypt-for-auto-pms/244980/2 "2022-11-09T10:23:59Z")

</div>

~~I’ve just installed `discourse-encrypt` on my test site and given this a run-through and it doesn’t seem to be doing the same for me. I can set up an auto-pm on group join, and it gets delivered without encryption (with the test user having encryption enabled).~~

~~Perhaps there’s something I could be doing differently?~~

~~I know what I could try. I haven’t enabled encryption for the user sending the message. I’ll give that a go.~~

Yes, I think I can replicate this. I’ll split it into a #Contribute > Bug topic and add some repro steps.👍

- Enable `discourse-encrypt` and `discourse-automation`
- Create automation for auto-PM on group-join with `Encrypts PM if available` toggled off
- Set encryption for test\_user and nominated `PMs sender`
- Add test\_user to group  
  
- test\_user receives encrypted PM

---

_[View the full topic](https://meta.discourse.org/t/automation-not-respecting-encrypt-not-encrypt-for-auto-pms/244980)._
