# Cosa succederebbe se i badge potessero sincronizzare opzionalmente l'iscrizione ai gruppi?

**URL:** https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232
**Category:** Feature
**Tags:** badges, groups, completed
**Created:** [13 Luglio 2018, 4:58am UTC](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232 "2018-07-13T04:58:13Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [16 Luglio 2018, 5:25pm UTC](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232/5 "2018-07-16T17:25:43Z")

</div>

Prior requests:

> [@Group Assignment SQL Query](https://meta.discourse.org/t/group-assignment-sql-query/25610):
>
> Before I get to my feature request, I would like to take the time to thank the Discourse team for their work. Discourse is an epic piece of software, and so far everyone I have introduced it to has nothing but high praise for it. Feature Would it be possible to extend the Badge Query options to groups. Currently groups can either be assigned by email domain or manually. Adding SQL queries would extend that to support anything an admin can imagine. Use Case I currently use SSO to integrate dis…

> [@Feature request: Category unlocking based on data](https://meta.discourse.org/t/feature-request-category-unlocking-based-on-data/72305):
>
> We’re trying to create a drip-campaign style experience, where a new user sees only one category when they join and then every few days another category is unlocked. We currently use category security to hide future lessons from students by setting those categories to admin-only access, and then, as the days pass, manually changing the security setting to allow everyone access on the day of the lesson/discussion. But this only works for everyone in our Discourse at the same time. One thing tha…

I know that just tying this up to the a badge re-uses a bunch of code, and simplifies a lot, but ideally this would be an option in the Groups UI, to have an option query that returns the `user_id` of members.

When you tie this to SSO and custom user fields, you get a very powerful system, where you can manage groups using queries on those custom fields + all the info Discourse already have.

---

_[View the full topic](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232)._
