# Award a non-custom badge through the console

**URL:** https://meta.discourse.org/t/award-a-non-custom-badge-through-the-console/103269
**Category:** Self-Hosting
**Tags:** how-to
**Created:** [December 2, 2018, 1:17am UTC](https://meta.discourse.org/t/award-a-non-custom-badge-through-the-console/103269 "2018-12-02T01:17:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [December 2, 2018, 1:17am UTC](https://meta.discourse.org/t/award-a-non-custom-badge-through-the-console/103269/1 "2018-12-02T01:17:00Z")

</div>

> 🔖 This guide explains how to award a non-custom badge through the Discourse console.
> 
> 🙋 Required user level: System Administrator
> 
> ⚠ Console access required

In specific scenarios, you might need to manually award a default Discourse badge to a user from the console. For example, a user may not receive the "Enthusiast" badge due to visiting a forum for 10 consecutive days, possibly due to time zone between the user’s local time and the server’s UTC time.

This documentation provides a step-by-step guide on manually awarding non-custom badges using the Rails console, ensuring these badges won’t be auto-revoked.

## Checking auto-revocable badges

Before awarding a badge, ensure that it will not be auto-revoked by the system. Run the following command in the Rails console to get a list of such badges:

```ruby
Badge.where(auto_revoke: false).pluck(:name)

```

This command will display a list of non-auto-revocable badges, including:

- "First Flag"
- "Thank You"
- "Gives Back"
- "Empathetic"
- "Out of Love"
- "Higher Love"
- "Crazy in Love"
- "Aficionado"
- "Devotee"
- "Enthusiast"
- "Reader"
- "Anniversary"
- "Appreciated"
- "Respected"
- "Admired"

## Awarding a badge

To grant a badge from this list, follow these steps:

1. **Find the user by username:**

2. **Locate the badge by name:**

3. **Grant the badge to the user:**

> Last edited by @SaraDev 2024-11-13T23:01:05Z
> 
> > **Check document**
> >
> > Perform check on document:
