# User.set\_automatic\_groups がすべてのソーシャルログインで呼び出されない

**URL:** <https://meta.discourse.org/t/user-set-automatic-groups-is-not-called-for-all-social-logins/81579>\
**Category:** Bug\
**Created:** [2018 年 2 月 26 日午後 6:50 UTC](https://meta.discourse.org/t/user-set-automatic-groups-is-not-called-for-all-social-logins/81579 "2018-02-26T18:50:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2018 年 2 月 26 日午後 7:02 UTC](https://meta.discourse.org/t/user-set-automatic-groups-is-not-called-for-all-social-logins/81579/2 "2018-02-26T19:02:31Z")

</div>

I was pondering earlier whether it would make sense to just fire this in e.g. `User.logged_in` so that it’s refreshed on login, but without delving into it it probably makes sense to trigger this:

- in the UserEmail controller when a user’s (verified) email address is updated
- when the autogroup rules change

---

_[View the full topic](https://meta.discourse.org/t/user-set-automatic-groups-is-not-called-for-all-social-logins/81579)._
