I believe we do support this for SSO signups, which can hook into that sort of action via our API. But not currently supported for ordinary signups, no.
We’d have to hear from a couple of customers before building it, but I do support this feature. Would come in handy for things like game forums, where you need to join a faction.
What is your use case for this?
I have the Wp-discourse plugin installed so I could use WordPress as my SSO provider but I have no idea how that would allow me to require joining a group (or indeed how I would hand over any data apart from name and email to discourse). Could you explain?
My use case is the following: my forum aims to bring together people with an interest in the same topic but who have approached this topic from very different angles, indeed from very different roles. For simplicity’s sake, let’s say they come from a variety of different occupations. So I have a list of occupations or occupation types that might join and I have created a group for each of them.
Now, why do I want to force people to choose one of these groups? Several reasons.
- It allows me to automatically set every user’s title according to their group, i.e. their title will show their occupation. To explain why it is a crucial resource for users to see each other’s occupation would lead too far here, just trust me that it is.
- It allows any user to @-mention the members of an occupation, for example in the format “So what do s have to say about this question?”. Admittedly, this is somewhat experimental and may have to be turned off for ordinary members if it leads to too much spam mentions. But even so, for admins it will be useful to be able to address different occupations differently.
- statistical reasons: I will have a better idea of the composition of my membership, for example to be able to focus mobilising efforts on certain, underrepresented constituencies. (This could be done with custom fields too, but I believe groups would make it easier to keep an eye on various constituencies.)
- It gives users the possibility to communicate within their own constituency if they wish, reducing the risk of being alienated by all those strange people from other occupations.
I guess your example of game forums is more straightforward…
I was talking about our general sso support, which requires a custom implementation for every site. As far as I know, this functionality is not baked into wp-discourse. I think @simon is planning to work on something related to this though.
One use case relates to sending people a link to migrate to your forum–Facebook, Meetup, etc. You don’t have their email, but you need to assign them to a group or at least let them pick a group.
Options for new feature(s):
1/ let the user pick group(s) on registration
2/ change invite feature to not require token per user so you can generate general link to published to users with groups associated with invite
3/ allow users to be added immediately after they click the “join group” button on a group page or on /groups and then register/activate or login
1 would be trickier from a UX, custom field, standpoint. It covers the, “I just showed up at this site” scenario and i need to pick a group.
2 would allow assigning users to public and non-public groups via email invitation.
3 seems to cover various scenarios; discussed here and possibly already on @tgxworld list?
Personally for me, order of priority would be 3,2,1.
If #3 gets done you could direct users to register via the /groups page. Could also have a setting so the signup link is changed to /groups. This would only support one group without more changes, but if the user is returned to the /groups page they could then choose group 2, 3, etc.
Hm, in terms of which option is most generic (i. e. solves the most problems) I’d say “let the user pick group(s) on registration” ranks best. It covers both your and my use case (and many more). Wherr do you see the UX trickyness?
I like the idea but just show a box with long list?, no flair/logo?, slug vs full name?, various groups for diferrent purposes (not just e.g., occupation)?, no description, which groups to show? approval to join?
I like the idea. What about just having a page two in the registration process that goes to /groups? Would need sort out setting for “Must be a member of at least n groups?”
I could see that being useful for topical websites using restricted groups where you can choose which topics/groups to join aka “follow” and show up in Latest and Digest.
You are using it more like a profile field which is fine too.
As far as doing this through the wp-discourse plugin goes, adding a user to a group is very straightforward. The hard part would be figuring out how to associate the user with a Discourse group before they login through SSO.
I think the easiest way to approach it would be to add a required ‘group’ field to the WordPress registration form. It could be a drop-down list of the available Discourse groups.
I have not tried it yet myself, but if anyone is looking at this with a similar problem, I suppose the closest you can currently get to requiring people to join a group at sign-up is to use the custom wizard plugin
@tophee were you able to accomplish requiring user group selection during registration?
Yes, I was, using the custom wizard plugin.
When I try with that plugin, the only presets offered in the drop-down option are the categories. How did you use the plugin to accomplish mandatory group selection? Thank you, in advance!
Sorry, my answer was inaccurate. I use the wizard plugin to force people to provide me with information that I need to add them to relevant groups, then I manually add them to those groups. There is currently no other way (which is why this feature request is still open).
Got it. Thank you for the clarity.
This feature is exactly what I’m looking for. And now that I know it’s not a feature, I will look into starting development for it. It doesn’t seem like it would be an extremely hard thing to accomplish. I’m an entry level developer, I don’t know a lot, so this could definitely be a small project for me to sink my teeth into.
Any luck with this feature?
I am also looking for this feature that makes it possible to automatically assign a new user to a Primary group based on what group they entered when signing up. For example, we have a Florida group so if a new user enters Florida when signing up, they will be assigned to the Florida group automatically.
Resurrecting this, since my search didn’t help much. Any way to force/allow/assign a user to join a custom group upon sign-up? For all the reasons outlined above, this would be ideal. When a community has natural factions, this can help facilitate micro communities around specific topics. Maybe it belongs in the marketplace?
Following up on this one last time: any plans for this?
To re-state: forcing users (or at least giving them the option) to join a custom group during the sign-up process. For those with factioned communities, this is becoming pretty important.
I can see this has been a popular feature requested in a few threads here.
I’m looking at implementing this, but going about it in a different way.
We need users to select groups as part of the registration process, to populate their experience on our platform, as many categories are only visible if a user is part of the connected group (otherwise the site is too overwhelming for them).
For me the simplest way to solve this would be to redirect users to the Groups page after signup.
Then give users a clear explanation of what they need to choose and why. In the groups page header we can put:
‘Join Groups to Populate your Platform’
‘location, skills, interests, student?, organisation’
I see a lot of posts on how to redirect users after login. I’ve not found any about how to redirect users only after sign-up. Anyone have any ideas?
I read others who used it saying that it isn’t great for allowing users to search groups and select them, so i was planning on using the search bar in the Groups page.
The issue i’ve heard others talk about is that doing this only creates a list of which groups they want to join, and an admin has to manually add them to those groups so there’d be a delay and a lot of extra work for admins.
Unless i can set the custom redirection to the groups page itself, rather than a form.