# Automatically assigning users to a group

**URL:** https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164
**Category:** Support
**Created:** [June 2, 2016, 10:03pm UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164 "2016-06-02T22:03:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jvvlee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jvvlee/32/121742_2.png) [@jvvlee](https://meta.discourse.org/u/jvvlee)
#### Post date: [June 2, 2016, 10:03pm UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164/1 "2016-06-02T22:03:16Z")

</div>

Hi,

I have a discourse-hosted instance of a forum that I integrated with a website. On our website, we have users with different membership levels that have access to different content. We would like to be able to pass along some type of information on login that tells discourse to add the user to a group. I saw some options about setting a default level or doing something based on provided email, but I don’t think those will work. Given the limited amount of information we’re allowed to pass to discourse via the SSO, I’m not entirely sure this is possible but any tips would be appreciated.

If this isn’t possible, can anyone recommend any apps that might do this?

Thanks

---

<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: [June 5, 2016, 9:42pm UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164/2 "2016-06-05T21:42:26Z")

</div>

Not yet, but this is a feature I would like to have

---

<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: [January 27, 2019, 11:15pm UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164/3 "2019-01-27T23:15:02Z")

</div>



---

<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: [January 28, 2019, 11:31am UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164/4 "2019-01-28T11:31:56Z")

</div>

This is now supported, read our SSO documentation for full info.

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

You can assign users to groups or reset the list of groups a user belongs to direct from the SSO payload.

---

<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: [January 28, 2019, 11:31am UTC](https://meta.discourse.org/t/automatically-assigning-users-to-a-group/45164/5 "2019-01-28T11:31:59Z")

</div>


