# Notify moderators when a user reaches TL3

**URL:** https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071
**Category:** Feature
**Created:** [2017 年 7 月 29 日午後 3:38 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071 "2017-07-29T15:38:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 7 月 29 日午後 3:38 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/1 "2017-07-29T15:38:10Z")

</div>

At the moment, Discourse notifies users when they reach Trust Level 3 (via the Regular Badge), but there isn’t an equivalent notification for site staff. By the default requirements, TL3 users are very active users of the site who provide helpful posts (liked by others). As a site admin, I’d like to recognize users who accomplish this, as well as encourage them to keep doing what they’re doing. At the moment, I just keep an eye on `/badges/3/regular`, but this is very manual.

Thoughts on a site setting to send moderators (or more ideally a list of users) a PM when a user reaches TL3? Site setting because this could be incredibly noisy on larger sites, and “ideally a list of users” as there may be numerous moderators, not all of whom need to be alerted to something like this.

---

<div class="post-metadata">

### Author: ![Sean\_R](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sean_r/32/72433_2.png) [@Sean\_R](https://meta.discourse.org/u/Sean_R)
#### Post date: [2017 年 7 月 29 日午後 11:41 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/2 "2017-07-29T23:41:49Z")

</div>

I was just thinking this today as we had a long time contributor reach TL3 and we did not welcome him properly to the group. Also would be nice to see a list of all of the users that are close to promotion.

---

<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: [2017 年 7 月 30 日午後 9:34 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/3 "2017-07-30T21:34:22Z")

</div>

I agree that an easy way to get visibility of this would be useful for acknowledgment and retention.  
@codinghorror – your thoughts?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 7 月 31 日午前 4:33 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/4 "2017-07-31T04:33:34Z")

</div>

Couldn’t you just subscribe to the RSS feed for the badge? I think there is already a way to do this.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 7 月 31 日午前 4:36 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/5 "2017-07-31T04:36:45Z")

</div>

[Regular badge on Discourse Meta](https://meta.discourse.org/badges/3/regular.rss) does not appear to be valid. I get a nice blank page when I try to load that.

Even if there was an RSS feed, I think this would be something useful from a community perspective to support within Discourse.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 7 月 31 日午前 5:12 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/6 "2017-07-31T05:12:30Z")

</div>

I’d rather make the RSS feeds work on these badge pages like they do on other pages @techapj, can you add that to your list?

---

<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: [2017 年 7 月 31 日午後 3:53 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/7 "2017-07-31T15:53:33Z")

</div>

The problem with RSS though is that its very ninja and requires external tools.

I am not entirely against adding this kind of option to the badge definition page:

> Notify these users when a user is assigned this badge:  
> [username1, username2 …]

Then we could easily just add one more notification when the badge is assigned.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 7 月 31 日午後 11:27 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/8 "2017-07-31T23:27:03Z")

</div>

I’m not really in favor of any extra feature creep at this time, as our plate is quite full.. however RSS _should_ work on these pages as it does on all others. This is kind of an advanced user ask anyway.

---

<div class="post-metadata">

### Author: ![Sean\_R](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sean_r/32/72433_2.png) [@Sean\_R](https://meta.discourse.org/u/Sean_R)
#### Post date: [2017 年 8 月 2 日午後 3:18 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/10 "2017-08-02T15:18:55Z")

</div>

> [@codinghorror](#):
>
> I’m not really in favor of any extra feature creep at this time, as our plate is quite full… however RSS should work on these pages as it does on all others. This is kind of an advanced user ask anyway.

I agree an RSS should help in the short term. I think a long term option would be an added ability to set a staff notification option on badge settings to be notified when attained. It would be off by default but would give flexibility to the staff.

Also would be good to allow for Dashboard improvements to understanding TL attainment and promotion inevitability. For example, when we look at TL 2 we could possibly see a mark next to users that are close to TL 3 (whatever that means) without having to dive into each user.

That is for future arguments when Badges and TL level enhancements get into the mix.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2017 年 8 月 9 日午後 12:01 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/11 "2017-08-09T12:01:01Z")

</div>

Okay, added RSS feed for badge pages via [FEATURE: add RSS feed for badge pages · discourse/discourse@bf2c35a · GitHub](https://github.com/discourse/discourse/commit/bf2c35aa9900ca6b513a91aeb9ebe08112bc795c).

`https://meta.discourse.org/badges/3/regular.rss` works now.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 8 月 10 日午後 7:46 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/12 "2017-08-10T19:46:39Z")

</div>

Thanks @techAPJ. Unfortunately, I’ve discovered that this does not actually resolve the issue for me. The site I was looking for this feature on uses SSO and I cannot get my RSS reader to access the page. As such, barring a suggestion for getting an RSS reader to authenticate via SSO, RSS will not solve the issue for me.

---

<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: [2017 年 8 月 10 日午後 7:52 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/13 "2017-08-10T19:52:51Z")

</div>

I haven’t got a site with SSO to test, but I think you should be able to use an API key generated in the admin panel to authenticate to an rss endpoint?

Something like `https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071.rss?api_key=blahblahblah`

works for me on a non-sso login-required site without logging in

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 8 月 10 日午後 7:56 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/14 "2017-08-10T19:56:52Z")

</div>

Hmm, interesting idea. I’ll have to test that when I’m back at work tomorrow.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 8 月 10 日午後 8:16 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/15 "2017-08-10T20:16:28Z")

</div>

@techAPJ why would the RSS page require authentication? That doesn’t seem right. I don’t know why the badge listing page would require staff access to see?

On the other hand `https://meta.discourse.org/badges/3/regular.rss` loads just fine in Incognito Mode in Chrome for me @jomaxro

---

<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: [2017 年 8 月 10 日午後 8:18 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/16 "2017-08-10T20:18:40Z")

</div>

I have `login-required` and `hide user profiles from public` enabled, and so the badges page does require authentication. I guess @jomaxro has something similar, with the addition of SSO.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 8 月 10 日午後 9:06 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/17 "2017-08-10T21:06:17Z")

</div>

Yep, @david got it right. We’re login required in addition to SSO.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 8 月 11 日午前 10:40 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/18 "2017-08-11T10:40:10Z")

</div>

Sadly using the admin API key does not appear to work on my SSO `login-required` site. Trying to load `https://mydomain.com/latest.rss?api_key=not_a_real_key` does not work. I’m getting a HTTP 500 error. Loading just `https://mydomain.com/latest.rss` redirects to the SSO login page.

---

<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: [2017 年 8 月 11 日午前 11:08 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/19 "2017-08-11T11:08:50Z")

</div>

> [@jomaxro](#):
>
> HTTP 500 error.

Pretty sure a 500 error shouldn’t happen - anything in the logs?

Edit: Ah, I can reproduce the 500 if I use an “All Users” API key. Using a key associated with a specific user works fine.

To make the “All Users” key work, just add `&api_username=system` to the end 🙂

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 8 月 11 日午前 11:18 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/20 "2017-08-11T11:18:07Z")

</div>

Was about to post that there was nothing in `/logs`…

…adding the username parameter at the end works! Thanks @david 💝

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 8 月 11 日午前 11:25 UTC](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071/21 "2017-08-11T11:25:12Z")

</div>

Can we improve the error message here?

[Next page](https://meta.discourse.org/t/notify-moderators-when-a-user-reaches-tl3/67071.md?page=2)
