# Grant Badge when user visits link

**URL:** https://meta.discourse.org/t/grant-badge-when-user-visits-link/276700
**Category:** Data & reporting
**Tags:** sql-triggered-badge
**Created:** [August 25, 2023, 10:55pm UTC](https://meta.discourse.org/t/grant-badge-when-user-visits-link/276700 "2023-08-25T22:55:08Z")
**Posts on this page:** 1
**Showing post:** 28

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 30, 2023, 4:30pm UTC](https://meta.discourse.org/t/grant-badge-when-user-visits-link/276700/28 "2023-08-30T16:30:08Z")

</div>

> [@Sami\_Syed](#):
>
> how do I add them to a custom group based on them being granted a badge, and then how do I grant them the trust level based on being in the group ?

You would use the Automation script (see below). As part of creating a group, you can assign a trust level to be automatically granted with it:

 ![set trust level for group](https://global.discourse-cdn.com/meta/original/4X/c/d/1/cd1a96b639ba77a2790cb8d11f7706e4a0c59c70.png)

> [@Sami\_Syed](#):
>
> where can I find this script

It’s part of the Automation plugin:

> [@Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773):
>
> discourse2Summary Discourse Automation lets you automate actions through scripts and triggers. Customisation is made through an automatically generated UI.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features Easy automation of complex workflows Triggers automations at specific dates, periodically, or on specific events Provides automatically generated UIs…

---

_[View the full topic](https://meta.discourse.org/t/grant-badge-when-user-visits-link/276700)._
