# 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:** [2017 年 11 月 21 日午後 1: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:** 5

<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:** [2017 年 11 月 21 日午後 4:43 UTC](https://meta.discourse.org/t/discourse-as-sso-host-restrict-content-in-wp-based-on-discourse-groups/74509/5 "2017-11-21T16:43:52Z")

</div>

> [@anon36484860](#):
>
> Is there any way to restrict certain wordpress pages or content based on Discourse user roles or groups?

Are you using the [WP Discourse](https://github.com/discourse/wp-discourse) plugin? If so, some functions have been added to the latest version (1.5.0) that could help you. It will be in the WordPress plugin repository later today.

The functions were added with the opposite use case in mind - restricting content on Discourse based on membership in a WordPress group, but they could be used to do what you want. I’ll write some documentation about how to use the functions 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)._
