משתמשים בוחרים קטגוריה בעצמם בעת ההרשמה... האם זה אפשרי?

סיכום מבוסס בינה מלאכותית

In a discussion titled ‘Users self-select Category on Registration… is it possible?’, Andy_Katz1 asks if new users can select a category (e.g., Student or Teacher) during registration to be automatically placed in the correct category upon login. awesomerobot confirms this is possible using the Discourse Automation plugin, which can add users to groups based on a custom field (e.g., ‘student’ or ‘teacher’) selected at signup. These groups can then be granted access to specific categories via permissions. Andy_Katz1 thanks them, then follows up to confirm whether SSO and standard Discourse registration can coexist. pfaffman clarifies that if using discourse_connect (SSO), it becomes the sole authentication method — the ‘Single’ in SSO means only one system handles login, though multiple OAuth providers (like Google) can be used alongside. Thus, standard Discourse registration cannot run simultaneously with discourse_connect SSO.

Is there an option where a new user can select a category during the discourse registration process, which would automatically place them in that category after successful login?

Basically I have 2 primary site users, Students + Teachers, and I would like them to self-identify during the registration process, so they can be placed in the correct category automatically after sign-up.

Thanks!

Yes this should be possible with Discourse Automation — the plugin includes an automation called “add user to group through custom field”

So at signup you could require a custom field with the options “student” and “teacher”, and based on what a user selects they can be automatically added to the relevant user group. The user group can then be given access to specific categories (more info on this in Understanding groups and category permissions)

Thank you!

I appreciate your help.

@awesomerobot just to confirm one thing.

It’s no issue to have SSO registration setup and simultaneously have Discourse registration.

Correct?

Both can be used to register users (SSO and Discourse), is my assumption.

Not correct. If you use discourse_connect then it, and only it handles authentication. You can use multiple oauth sources (like google), but the first S in SSO is Single. And it means it.