Ajouter de nouveaux groupes via SSO

J’utilise SSO sur mon Discourse. Ce que je souhaite, c’est que si je spécifie certains groupes dans add_groups, par exemple grp1,grp2,grp3 :

Supposons que grp1 et grp3 existent, mais que grp2 n’existe pas. Je voudrais que Discourse crée grp2 et ajoute l’utilisateur actuel à ce groupe. Est-ce possible ?

1 « J'aime »

I have this use case too, I am trying to automatically add my AD users to groups named after the “department” field in our directory but it only works if i generate all the groups first. It would be very cool if we had a “sso can create groups” option in Discourse settings that made a new group with default settings. I mainly want to use it for easily finding all the users belonging to each department at work :slight_smile:

1 « J'aime »

I recommend using our API to create the groups, it feels super messy trying to add this to the SSO protocol. Too many bad things can happen.

5 « J'aime »

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.