# Refresh sso groups

**URL:** https://meta.discourse.org/t/refresh-sso-groups/71174
**Category:** SSO
**Tags:** groups
**Created:** [October 2, 2017, 11:07am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174 "2017-10-02T11:07:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [October 2, 2017, 11:07am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/1 "2017-10-02T11:07:32Z")

</div>

We use the official [Discourse sso](https://meta.discourse.org/t/13045?silent=true) and pass a set of groups via add\_groups/remove\_groups. However now we’re looking for a good way to “refresh” the list of groups. Can anyone think of a way to do this without having the user have to logout/login?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 2, 2017, 11:57pm UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/2 "2017-10-02T23:57:45Z")

</div>

Yeah … you would use the `sync_sso` route, you just pass it the sso payload and it updates all the data without logging the user out.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 6, 2017, 1:29pm UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/3 "2017-10-06T13:29:53Z")

</div>

When/how would that happen?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 9, 2017, 12:06am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/4 "2017-10-09T00:06:37Z")

</div>

3rd party app would run it at its discretion.

For example … master user account updates profile picture on master site … call sync\_sso to pass it to Discourse in a background job.

---

<div class="post-metadata">

### Author: ![lkramer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lkramer/32/83897_2.png) [@lkramer](https://meta.discourse.org/u/lkramer)
#### Post date: [December 21, 2017, 7:06pm UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/5 "2017-12-21T19:06:37Z")

</div>

Hi Jay. Have you successfully used sync\_sso? If so, would you mind sharing some example code?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 21, 2017, 7:26pm UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/6 "2017-12-21T19:26:45Z")

</div>

I’ve got nothing at hand. If you want help here, start a new topic, say what membership stuff you’re using and what you’re trying to accomplish. I think you just need a few lines in whatever membership thing you’re using to push the stuff over.

Lots of stuff has gotten better in the wp-discourse plugin which might solve your problem pretty easily.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 28, 2020, 11:22pm UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/7 "2020-02-28T23:22:22Z")

</div>



---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 29, 2020, 1:21am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/8 "2020-02-29T01:21:33Z")

</div>

You can find details about using the `sync_sso` route to refresh sso data here: [Sync SSO user data with the sync\_sso route](https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 12, 2024, 7:26am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/9 "2024-02-12T07:26:39Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 12, 2024, 9:15am UTC](https://meta.discourse.org/t/refresh-sso-groups/71174/10 "2024-02-12T09:15:57Z")

</div>


