# Anonymous Plugin

**URL:** https://meta.discourse.org/t/anonymous-plugin/73293
**Category:** Development
**Created:** [November 2, 2017, 2:51pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293 "2017-11-02T14:51:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [November 2, 2017, 2:51pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/1 "2017-11-02T14:51:27Z")

</div>

Hi,  
I’m setting up discourse to be used as a discussion board for a school. One of the requested features was students can make a post where they appear as anonymous to other students but teacher is aware of the individual that made the post.  
I was wondering if there was any plugin to this effect or any suggestions on how to achieve this.

Thanks

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [November 2, 2017, 5:09pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/2 "2017-11-02T17:09:01Z")

</div>

Hi there,  
You don’t need a plugin – anonymous posting is part of core. You can try it out yourself here. Click the spy icon from the avatar dropdown menu. In your own community you need to ensure that you have anonymous posting enabled in your site settings.

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/5/559f0d4e08ecb4531af09a9d24ed55ebedc2f265.png)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 2, 2017, 5:33pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/3 "2017-11-02T17:33:33Z")

</div>

> [@HAWK](#):
>
> You can try it out yourself here

Normal users can’t see that button on Meta

> [@How does anonymous posting work?](https://meta.discourse.org/t/how-does-anonymous-posting-work/73073/4):
>
> you have to be Trust Level 4 to utilise that feature here

I don’t think this bit is possible as part of core?:

> [@Bolarinwa\_Balogun](#):
>
> but teacher is aware of the individual that made the post

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [November 2, 2017, 5:34pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/4 "2017-11-02T17:34:42Z")

</div>

> [@david](#):
>
> Normal users can’t see that button on Meta

Damn it. I always forget that. You’re right.

> [@david](#):
>
> I don’t think this bit is possible as part of core?:

It is if the teacher is an admin. You can do an IP compare (which almost always works…). Come to think of it, that might be an issue in educational institutions if the users are grouped on a common IP.

---

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [November 2, 2017, 6:55pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/5 "2017-11-02T18:55:27Z")

</div>

Yes, grouping under a common IP would be an issue. Do you have any other suggestions on how admin could be made aware of the individual who make an anonymous post?

Thanks

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 2, 2017, 7:28pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/6 "2017-11-02T19:28:42Z")

</div>

Impersonate and switch should work

---

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [November 2, 2017, 8:15pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/7 "2017-11-02T20:15:24Z")

</div>

Please, could you elaborate on this?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [November 3, 2017, 12:12am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/8 "2017-11-03T00:12:47Z")

</div>

As an admin you can impersonate the anonymous user:

 ![RlG0gko](https://global.discourse-cdn.com/meta/original/4X/e/8/8/e88c54e7a88cc2c95f2f6118ed4505a667c90406.png)  
Now you are the anonymous user:

 ![8DKMBAz](https://global.discourse-cdn.com/meta/original/4X/7/4/5/745ac3b281cb47d1caad37725e9c1df0c4ccc7cc.png)  
and if you click on that icon you will return to be the original user (not anonymous) who wrote the message.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 3, 2017, 12:14am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/9 "2017-11-03T00:14:54Z")

</div>

It looks like there’s a [data explorer](https://meta.discourse.org/t/32566?silent=true) query for this as well:

> [@Is anonymous posting possible?](https://meta.discourse.org/t/is-anonymous-posting-possible/66453/5):
>
> You’re right – this query of yours will do that: SELECT users.username , user\_custom\_fields.value FROM users JOIN user\_custom\_fields ON users.id = user\_custom\_fields.user\_id OR users.id = CAST( user\_custom\_fields.value AS int ) WHERE user\_custom\_fields.name LIKE 'shadow\_id' ORDER BY user\_custom\_fields.value There is no obvious way through the UI though.

---

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [November 3, 2017, 5:04am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/10 "2017-11-03T05:04:01Z")

</div>

Thank you for your explanation

---

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [November 3, 2017, 6:26pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/11 "2017-11-03T18:26:22Z")

</div>

Quick question  
Is it possible for two people to share a single anonymous account? The reason I’m asking is if it’s possible, then the impersonate and switch might not be too effective.

Thanks

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [November 3, 2017, 6:33pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/12 "2017-11-03T18:33:31Z")

</div>

No, because every anonymous user have a different (autogenerated) email like this for example `1b2c3d4e5f6g@anon.your-site.com`

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [December 15, 2017, 11:37am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/13 "2017-12-15T11:37:56Z")

</div>

Ciao, Dax!  
First of all, congratulations on joining the Team :discourse: ! As you seem to know functioning of anonymous mode pretty well, perhaps you’ll be able to tell me - is it possible to alter i.e. via plugin this very behaviour? That is, having only one @anonymous9 user serving as _anonypuppet_ for all users?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [December 15, 2017, 1:25pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/14 "2017-12-15T13:25:29Z")

</div>

Thanks @MakaryGo!

If I understand your request you would like to create a unique user, for example `Anon1`, and make sure that all anonymous users on your forum write as `Anon1` .

From an administrative point of view I do not think it’s a good idea. How could an administrator or moderator trace the identity of a user in case of problems?  
How can users themselves understand who wrote what and respond accordingly?

BTW through the plugins you can do pretty much everything, including overriding the logic that uses Discourse in creating anonymous users. You should open a new topic on #Development and explain exactly what you would like to do and especially why, to get more information from the experts.

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [July 31, 2019, 9:03am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/15 "2019-07-31T09:03:38Z")

</div>

I tried it, but no results.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/8/98133a56c6f9421a2a9fec4a5ec8cef2e4abcbb1.png)  
The following link is also,  
anyone who knows the my problem? thanks in advance

> [@Finding originating account of anonymous posts](https://meta.discourse.org/t/finding-originating-account-of-anonymous-posts/111067/8):
>
> There’s a good reason why that feature is disabled by default. You should have a really good reason to enable it and you should trust them to not abuse that feature. Maybe use a higher anonymous\_posting\_min\_trust\_level? You can use the following query in the Data Explorer if you really need to find out who’s who. But, if you need to use it on a regular basis you should really ask yourself if your community members are ready for the anonymous posting feature. Choose the right query depending on…

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [July 31, 2019, 12:44pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/16 "2019-07-31T12:44:07Z")

</div>

I added a query that works with Discourse v2.3 and newer in [Finding originating account of anonymous posts - #8 by gerhard](https://meta.discourse.org/t/finding-originating-account-of-anonymous-posts/111067/8).

---

<div class="post-metadata">

### Author: ![justin.noom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin.noom/32/147907_2.png) [@justin.noom](https://meta.discourse.org/u/justin.noom)
#### Post date: [July 31, 2019, 4:23pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/17 "2019-07-31T16:23:59Z")

</div>

> [@dax](#):
>
> Now you are the anonymous user:

Is the button in the screenshot below said text still usable? That would be _so_ useful when impersonating other users if I was able to immediately switch back.

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [August 1, 2019, 12:58am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/18 "2019-08-01T00:58:33Z")

</div>

thanks very much, it works.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [August 8, 2019, 9:34am UTC](https://meta.discourse.org/t/anonymous-plugin/73293/19 "2019-08-08T09:34:19Z")

</div>

> [@justin.noom](#):
>
> That would be _so_ useful when impersonating other users if I was able to immediately switch back.

This is specific to anonymous mode. Clicking that button brings you to the original author of the post/topic but you won’t return to your admin account.

Currently, to avoid logging out of the user being impersonated (anonymous or not) and then logging in to your admin account, the simplest method is to impersonate the user in an anonymous browser window.

That said, anonymous mode is disabled by default on all our hosted sites. To enable it, you need to request it by sending an email (or a PM) to us.

---

<div class="post-metadata">

### Author: ![justin.noom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin.noom/32/147907_2.png) [@justin.noom](https://meta.discourse.org/u/justin.noom)
#### Post date: [August 8, 2019, 6:27pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293/20 "2019-08-08T18:27:50Z")

</div>

Thanks so much for the clarification! I’ll be sure to do that.
