# Discourse as SSO host -\> Restrict content in WP based on Discourse groups

**URL:** https://meta.discourse.org/t/discourse-as-sso-host-restrict-content-in-wp-based-on-discourse-groups/74509
**Category:** WordPress
**Created:** [21 Noviembre, 2017 13:15 UTC](https://meta.discourse.org/t/discourse-as-sso-host-restrict-content-in-wp-based-on-discourse-groups/74509 "2017-11-21T13:15:09Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [21 Noviembre, 2017 22:57 UTC](https://meta.discourse.org/t/discourse-as-sso-host-restrict-content-in-wp-based-on-discourse-groups/74509/7 "2017-11-21T22:57:40Z")

</div>

> [@anon36484860](#):
>
> Perfect timing! Will test it then …

I need to make a small change to the `get_discourse_user` function that has been added. It’s currently not returning the groups data. I can add a parameter to it so that it returns all the data that is available for the user. That will be in the next update - sometime later this week.

---

_[View the full topic](https://meta.discourse.org/t/discourse-as-sso-host-restrict-content-in-wp-based-on-discourse-groups/74509)._
