# Groups API - manually syncing group membership?

**URL:** https://meta.discourse.org/t/groups-api-manually-syncing-group-membership/154521
**Category:** Development
**Tags:** rest-api
**Created:** [June 11, 2020, 1:15pm UTC](https://meta.discourse.org/t/groups-api-manually-syncing-group-membership/154521 "2020-06-11T13:15:24Z")
**Posts on this page:** 1
**Showing post:** 8

<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: [June 15, 2020, 4:51pm UTC](https://meta.discourse.org/t/groups-api-manually-syncing-group-membership/154521/8 "2020-06-15T16:51:56Z")

</div>

> [@Judith](#):
>
> I ran into the problem that it only updates group membership when people log in

The `sync_sso` exists to address this exact problem! You can trigger what is effectively a “virtual” sso login anytime a membership change to fully sync up a user.

> [@Sync DiscourseConnect user data with the sync\_sso route](https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398):
>
> Single Sign On can be used to handle Discourse user authentication from a separate site. The [Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045) topic has details about how to implement [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) . The Problem With [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) , Discourse users will be created or updated when they login to Discourse from your external website. What it doesn’t handle is when you need to create or update Discourse users without having them login to your site. For sites that are using…

---

_[View the full topic](https://meta.discourse.org/t/groups-api-manually-syncing-group-membership/154521)._
