# Granting Manual Badges

**URL:** https://meta.discourse.org/t/granting-manual-badges/70847
**Category:** Support
**Created:** [September 27, 2017, 3:24am UTC](https://meta.discourse.org/t/granting-manual-badges/70847 "2017-09-27T03:24:33Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [September 27, 2017, 10:10pm UTC](https://meta.discourse.org/t/granting-manual-badges/70847/4 "2017-09-27T22:10:40Z")

</div>

Really nice custom badges you have there!

> [@David\_Kwan](#):
>
> You mentioned Groups. How could groups be leveraged?

Since it’s possible to [bulk add users to a group](https://meta.discourse.org/t/bulk-add-to-group/34979), you could then: [Grant a badge for all members of a group](https://meta.discourse.org/t/automatically-grant-a-badge-for-all-members-of-a-group/18147)

* * *

Alternatively, if you are comfortable enough with Ruby, you could write and execute a Ruby script in your production environment, along the lines of:

```ruby
# or you can lookup users by username/email
users = User.find_by(id: [1, 2, 3, ..])

# 100 is the id of the badge
badge = Badge.find(100)

users.find_each { |user| BadgeGranter.grant(badge, user) }

```

* * *

From a long term perspective, I think maintaining and granting badges on a regular basis will do?

---

_[View the full topic](https://meta.discourse.org/t/granting-manual-badges/70847)._
