# 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:** 27

<div class="post-metadata">

**Author:** ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)\
**Post date:** [August 30, 2023, 3:24pm UTC](https://meta.discourse.org/t/grant-badge-when-user-visits-link/276700/27 "2023-08-30T15:24:16Z")

</div>

> [@JammyDodger](#):
>
> adding them to a custom group

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 ?

> [@JammyDodger](#):
>
> ‘User Group Membership through Badge’ script for the automation plugin

where can I find this script

---

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