# Can't add user in anonymous mode to a group automatically

**URL:** <https://meta.discourse.org/t/cant-add-user-in-anonymous-mode-to-a-group-automatically/166151>\
**Category:** Feature\
**Tags:** anonymous-mode\
**Created:** [October 4, 2020, 1:33am UTC](https://meta.discourse.org/t/cant-add-user-in-anonymous-mode-to-a-group-automatically/166151 "2020-10-04T01:33:58Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![curi](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@curi](https://meta.discourse.org/u/curi)\
**Post date:** [August 6, 2022, 5:30am UTC](https://meta.discourse.org/t/cant-add-user-in-anonymous-mode-to-a-group-automatically/166151/7 "2022-08-06T05:30:41Z")

</div>

one of my users made a plugin for me to have anonymous accounts automatically added to forum group. here’s my fork on github that i’m using. [GitHub - curi/cf-anon-auto-group: Discourse plugin to trigger `user.set_automatic_groups` for anons on login · GitHub](https://github.com/curi/cf-anon-auto-group) it’s been working fine

we need this to give them the right permissions so they can post anything.

maybe others could use this solution or someone could figure out how to make a more official plugin or merge the code in.

it works in combination with the automatic group membership by email setting (which did not work by itself in our experience):

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/c/0/5c0d20f8f2b4e024c03472d1d35c5080acfcf1ce.png)

---

_[View the full topic](https://meta.discourse.org/t/cant-add-user-in-anonymous-mode-to-a-group-automatically/166151)._
