# Discourse Event Bus Question

**URL:** https://meta.discourse.org/t/discourse-event-bus-question/128107
**Category:** Development
**Created:** [September 9, 2019, 11:07pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107 "2019-09-09T23:07:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Marcy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcy/32/155709_2.png) [@Marcy](https://meta.discourse.org/u/Marcy)
#### Post date: [September 9, 2019, 11:07pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/1 "2019-09-09T23:07:51Z")

</div>

I’m sorry if this is wrong area but does Discourse fire an event when the profile JSON file is requested over HTTP?  
[https://meta.discourse.org/u/Marcy.json](https://meta.discourse.org/u/Marcy.json) for example.

---

<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: [September 9, 2019, 11:29pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/2 "2019-09-09T23:29:30Z")

</div>

No it does not, you would have to write a plugin to intercept that info.

---

<div class="post-metadata">

### Author: ![Marcy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcy/32/155709_2.png) [@Marcy](https://meta.discourse.org/u/Marcy)
#### Post date: [September 9, 2019, 11:31pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/3 "2019-09-09T23:31:55Z")

</div>

I’d like to but I’m unsure where to start. I want to change information on the JSON file before it’s displayed to the client.

---

<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: [September 9, 2019, 11:34pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/4 "2019-09-09T23:34:09Z")

</div>

That would mean you want to amend the serializer, look at plugins such as discourse assign or discourse solved that make serializer changes.

---

<div class="post-metadata">

### Author: ![Marcy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcy/32/155709_2.png) [@Marcy](https://meta.discourse.org/u/Marcy)
#### Post date: [September 9, 2019, 11:52pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/5 "2019-09-09T23:52:06Z")

</div>

Thanks for the tip, I found this which I assume makes the {Username}.json file?  
[https://github.com/discourse/discourse/blob/master/app/serializers/user\_serializer.rb](https://github.com/discourse/discourse/blob/master/app/serializers/user_serializer.rb)

Is there any Discourse Ruby API on what events exist, etc? As I don’t know how I’d make changes to it before being displayed as I wanna change the email field before it’s displayed.

---

<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: [April 13, 2023, 3:41pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107/6 "2023-04-13T15:41:30Z")

</div>


