# What does admin\_js.admin.badges.trigger\_type.user\_change mean in Discourse?

**URL:** https://meta.discourse.org/t/what-does-admin-js-admin-badges-trigger-type-user-change-mean-in-discourse/345733
**Category:** Support
**Tags:** gamification
**Created:** [January 6, 2025, 2:27am UTC](https://meta.discourse.org/t/what-does-admin-js-admin-badges-trigger-type-user-change-mean-in-discourse/345733 "2025-01-06T02:27:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)
#### Post date: [January 6, 2025, 2:27am UTC](https://meta.discourse.org/t/what-does-admin-js-admin-badges-trigger-type-user-change-mean-in-discourse/345733/1 "2025-01-06T02:27:24Z")

</div>

Hi,I came across the configuration `admin_js.admin.badges.trigger_type.user_change` in Discourse and I’m not sure what it refers to. Could someone explain its exact meaning and how it works in the context of badge triggers?  
In fact，I’ve created the following SQL badge query:

```sql
SELECT user_id, current_timestamp AS granted_at 
FROM gamification_scores
WHERE (:backfill OR user_id IN (:user_ids))
GROUP BY 1
HAVING SUM(score) > 1

```

I want this badge to trigger in real time, meaning it should be awarded immediately when the conditions are met.  
Any help or suggestions would be greatly appreciated!Thanks in advance!

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [January 6, 2025, 4:45am UTC](https://meta.discourse.org/t/what-does-admin-js-admin-badges-trigger-type-user-change-mean-in-discourse/345733/2 "2025-01-06T04:45:01Z")

</div>

> [@Creating triggered custom badge queries](https://meta.discourse.org/t/creating-triggered-custom-badge-queries/19336):
>
> bookmark This guide explains how to create triggered custom badge queries in Discourse, including the types of badges, constraints for triggered badges, and an example query. person_raising_hand Required user level: Administrator warning This feature is disabled by default. To enable it, follow [this guide](https://meta.discourse.org/t/badge-sql-can-no-longer-be-edited-by-default/47894). When defining badges in Discourse, you’ll encounter a “Trigger” option with the following choices: Update daily When a user acts on post When a user edits or creates a post When…

---

<div class="post-metadata">

### Author: ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)
#### Post date: [January 6, 2025, 1:54pm UTC](https://meta.discourse.org/t/what-does-admin-js-admin-badges-trigger-type-user-change-mean-in-discourse/345733/3 "2025-01-06T13:54:36Z")

</div>

I’ve gone through the guide, but I still have some questions. It mentions that badges can be triggered every minute, but it doesn’t explain exactly how to implement this. There’s an example for triggering badges when posts are edited, but I was hoping for something more frequent.

Additionally, it mentions that badges will trigger at least once per day, but it seems like that’s not happening. Could anyone help clarify how I can set up more frequent badge triggers, or if there’s something I might have missed?

Thank you in advance for your help!
