# Any way to programmatically add to groups?

**URL:** <https://meta.discourse.org/t/any-way-to-programmatically-add-to-groups/32474>\
**Category:** Support\
**Tags:** groups\
**Created:** [2015 年 8 月 24 日午後 5:56 UTC](https://meta.discourse.org/t/any-way-to-programmatically-add-to-groups/32474 "2015-08-24T17:56:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2015 年 8 月 24 日午後 5:56 UTC](https://meta.discourse.org/t/any-way-to-programmatically-add-to-groups/32474/1 "2015-08-24T17:56:35Z")

</div>

**I’d like to have several groups that are automatically populated with accounts older than N days.** The idea being that as user accounts age, new categories would open up to them based on the age of their account.

I can figure out how to do this with badges, but I can’t grant access to categories based on badges.

Is there any way to do what I described above?

---

_[View the full topic](https://meta.discourse.org/t/any-way-to-programmatically-add-to-groups/32474)._
